From 86bb1f6faed1563f48935e223237fa78f48c96d6 Mon Sep 17 00:00:00 2001 From: Igor Akkerman Date: Mon, 16 May 2016 03:02:26 +0200 Subject: [PATCH] First refactorings done --- jlib-container.iml | 2 +- .../org/jlib/container/operation/ForbiddenCastException.java | 3 +-- .../operation/InvalidContainerArgumentException.java | 3 +-- .../container/operation/InvalidContainerStateException.java | 3 +-- .../container/operation/ItemAlreadyContainedException.java | 3 +-- .../operation/ItemToRemoveNotContainedException.java | 2 +- .../jlib/container/storage/AbstractLinearIndexStorage.java | 3 +-- .../container/storage/InvalidAdditionalCapacityException.java | 2 +- .../container/storage/InvalidStorageCapacityException.java | 2 +- .../container/storage/capacity/AbstractCapacityStrategy.java | 2 +- .../container/storage/capacity/InvalidCapacityException.java | 4 ++-- 11 files changed, 12 insertions(+), 17 deletions(-) diff --git a/jlib-container.iml b/jlib-container.iml index cd475b98..46c7aaac 100644 --- a/jlib-container.iml +++ b/jlib-container.iml @@ -19,7 +19,7 @@ - + diff --git a/src/main/java/org/jlib/container/operation/ForbiddenCastException.java b/src/main/java/org/jlib/container/operation/ForbiddenCastException.java index acb4b730..1f33e9b4 100644 --- a/src/main/java/org/jlib/container/operation/ForbiddenCastException.java +++ b/src/main/java/org/jlib/container/operation/ForbiddenCastException.java @@ -22,8 +22,7 @@ package org.jlib.container.operation; import org.jlib.exception.InvalidStateException; - -import static org.jlib.message.MessageUtility.message; +import static org.jlib.message.Messages.message; public class ForbiddenCastException extends InvalidStateException { diff --git a/src/main/java/org/jlib/container/operation/InvalidContainerArgumentException.java b/src/main/java/org/jlib/container/operation/InvalidContainerArgumentException.java index 81f68a94..1a30c019 100644 --- a/src/main/java/org/jlib/container/operation/InvalidContainerArgumentException.java +++ b/src/main/java/org/jlib/container/operation/InvalidContainerArgumentException.java @@ -23,8 +23,7 @@ import org.jlib.exception.InvalidArgumentException; import org.jlib.message.Message; - -import static org.jlib.message.MessageUtility.message; +import static org.jlib.message.Messages.message; public abstract class InvalidContainerArgumentException extends InvalidArgumentException { diff --git a/src/main/java/org/jlib/container/operation/InvalidContainerStateException.java b/src/main/java/org/jlib/container/operation/InvalidContainerStateException.java index 2c39ac03..805d4585 100644 --- a/src/main/java/org/jlib/container/operation/InvalidContainerStateException.java +++ b/src/main/java/org/jlib/container/operation/InvalidContainerStateException.java @@ -23,8 +23,7 @@ import org.jlib.exception.InvalidStateException; import org.jlib.message.Message; - -import static org.jlib.message.MessageUtility.message; +import static org.jlib.message.Messages.message; public abstract class InvalidContainerStateException extends InvalidStateException { diff --git a/src/main/java/org/jlib/container/operation/ItemAlreadyContainedException.java b/src/main/java/org/jlib/container/operation/ItemAlreadyContainedException.java index e3dc9a5b..c0372e00 100644 --- a/src/main/java/org/jlib/container/operation/ItemAlreadyContainedException.java +++ b/src/main/java/org/jlib/container/operation/ItemAlreadyContainedException.java @@ -21,8 +21,7 @@ package org.jlib.container.operation; - -import static org.jlib.message.MessageUtility.message; +import static org.jlib.message.Messages.message; /** * {@link InvalidContainerArgumentException} thrown when trying to invalidly add diff --git a/src/main/java/org/jlib/container/operation/ItemToRemoveNotContainedException.java b/src/main/java/org/jlib/container/operation/ItemToRemoveNotContainedException.java index 5fe923ab..81d4fe0a 100644 --- a/src/main/java/org/jlib/container/operation/ItemToRemoveNotContainedException.java +++ b/src/main/java/org/jlib/container/operation/ItemToRemoveNotContainedException.java @@ -21,7 +21,7 @@ package org.jlib.container.operation; -import static org.jlib.message.MessageUtility.message; +import static org.jlib.message.Messages.message; /** * {@link InvalidContainerArgumentException} thrown when a {@link RemoveSingleByValue} does not contain diff --git a/src/main/java/org/jlib/container/storage/AbstractLinearIndexStorage.java b/src/main/java/org/jlib/container/storage/AbstractLinearIndexStorage.java index 7f35263a..00aa78d5 100644 --- a/src/main/java/org/jlib/container/storage/AbstractLinearIndexStorage.java +++ b/src/main/java/org/jlib/container/storage/AbstractLinearIndexStorage.java @@ -22,8 +22,7 @@ package org.jlib.container.storage; import org.jlib.exception.UnexpectedStateException; - -import static org.jlib.message.MessageUtility.mfmessage; +import static org.jlib.message.Messages.mfmessage; public abstract class AbstractLinearIndexStorage implements LinearIndexStorage { diff --git a/src/main/java/org/jlib/container/storage/InvalidAdditionalCapacityException.java b/src/main/java/org/jlib/container/storage/InvalidAdditionalCapacityException.java index 2b638656..a6dec184 100644 --- a/src/main/java/org/jlib/container/storage/InvalidAdditionalCapacityException.java +++ b/src/main/java/org/jlib/container/storage/InvalidAdditionalCapacityException.java @@ -21,7 +21,7 @@ package org.jlib.container.storage; -import static org.jlib.message.MessageUtility.message; +import static org.jlib.message.Messages.message; public class InvalidAdditionalCapacityException extends InvalidStorageArgumentException { diff --git a/src/main/java/org/jlib/container/storage/InvalidStorageCapacityException.java b/src/main/java/org/jlib/container/storage/InvalidStorageCapacityException.java index dd1eb163..f6c50a58 100644 --- a/src/main/java/org/jlib/container/storage/InvalidStorageCapacityException.java +++ b/src/main/java/org/jlib/container/storage/InvalidStorageCapacityException.java @@ -21,7 +21,7 @@ package org.jlib.container.storage; -import static org.jlib.message.MessageUtility.message; +import static org.jlib.message.Messages.message; /** * {@link InvalidStorageArgumentException} thrown when an invalid capacity of an {@link LinearIndexStorage} is diff --git a/src/main/java/org/jlib/container/storage/capacity/AbstractCapacityStrategy.java b/src/main/java/org/jlib/container/storage/capacity/AbstractCapacityStrategy.java index 8f30d8cd..d302e242 100644 --- a/src/main/java/org/jlib/container/storage/capacity/AbstractCapacityStrategy.java +++ b/src/main/java/org/jlib/container/storage/capacity/AbstractCapacityStrategy.java @@ -27,7 +27,7 @@ import org.jlib.container.storage.LinearIndexStorage; import org.jlib.basefunctions.ApplicationObject; -import static org.jlib.message.MessageUtility.mfmessage; +import static org.jlib.message.Messages.mfmessage; public abstract class AbstractCapacityStrategy extends ApplicationObject { diff --git a/src/main/java/org/jlib/container/storage/capacity/InvalidCapacityException.java b/src/main/java/org/jlib/container/storage/capacity/InvalidCapacityException.java index 9ca71ca9..3f04b5d8 100644 --- a/src/main/java/org/jlib/container/storage/capacity/InvalidCapacityException.java +++ b/src/main/java/org/jlib/container/storage/capacity/InvalidCapacityException.java @@ -21,10 +21,10 @@ package org.jlib.container.storage.capacity; -import org.jlib.container.storage.LinearIndexStorage; import org.jlib.container.storage.InvalidStorageArgumentException; +import org.jlib.container.storage.LinearIndexStorage; -import static org.jlib.message.MessageUtility.message; +import static org.jlib.message.Messages.message; public class InvalidCapacityException extends InvalidStorageArgumentException {