* This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 3 of the License, or (at your option) any * later version. - * + *
* This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. - * + *
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see http://www.gnu.org/licenses/.
*/
package org.fuin.objects4j.common;
+import jakarta.annotation.Nullable;
import jakarta.validation.ConstraintViolation;
import jakarta.validation.Validation;
import jakarta.validation.Validator;
@@ -40,7 +41,7 @@ public final class Contract {
/**
* Sets the validator to use for contract validation. This method is NOT thread safe. It should only be called once per application
* during the initialization phase.
- *
+ *
* @param newValidator
* Set the validator to a new value.
*/
@@ -51,7 +52,7 @@ public static void setValidator(final Validator newValidator) {
/**
* Returns the validator that is used for contract validation. This method is NOT thread safe - This may lead to concurrent
* initialization of the validator if it's not set yet.
- *
+ *
* @return Current instance - If the validator is not set yet, a new default validator will be created.
*/
public static Validator getValidator() {
@@ -70,12 +71,12 @@ private Contract() {
/**
* Checks if the value is not null.
- *
+ *
* @param name
* Name of the value for a possible error message.
* @param value
* Value to check.
- *
+ *
* @throws ConstraintViolationException
* The value was null.
*/
@@ -86,33 +87,33 @@ public static void requireArgNotNull(@NotNull final String name, final Object va
}
/**
- * Checks if the value is not null
or empty. A single space is considered a valid value.
- *
+ * Checks if the value is not {@literal null} or empty. A single space is considered a valid value.
+ *
* @param name
* Name of the value for a possible error message.
* @param value
* Value to check.
- *
+ *
* @throws ConstraintViolationException
* The value was null or empty.
*/
public static void requireArgNotEmpty(@NotNull final String name, final String value) throws ConstraintViolationException {
requireArgNotNull(name, value);
- if (value.length() < 1) {
+ if (value.isEmpty()) {
throw new ConstraintViolationException("The argument '" + name + "' cannot be empty");
}
}
/**
* Checks if the length of value is not higher than a give maximum.
- *
+ *
* @param name
* Name of the value for a possible error message.
* @param value
* Value to check.
* @param max
* Max length (inclusive).
- *
+ *
* @throws ConstraintViolationException
* The length was more than max
.
*/
@@ -125,14 +126,14 @@ public static void requireArgMaxLength(@NotNull final String name, @NotNull fina
/**
* Checks if the length of value is not less than a give minimum.
- *
+ *
* @param name
* Name of the value for a possible error message.
* @param value
* Value to check.
* @param min
* Minimal length.
- *
+ *
* @throws ConstraintViolationException
* The length was less than min
.
*/
@@ -145,14 +146,14 @@ public static void requireArgMinLength(@NotNull final String name, @NotNull fina
/**
* Checks if the value is not higher than a give maximum.
- *
+ *
* @param name
* Name of the value for a possible error message.
* @param value
* Value to check.
* @param max
* Max value (inclusive).
- *
+ *
* @throws ConstraintViolationException
* The value was more than max
.
*/
@@ -165,14 +166,14 @@ public static void requireArgMax(@NotNull final String name, @NotNull final long
/**
* Checks if the value is not less than a give minimum.
- *
+ *
* @param name
* Name of the value for a possible error message.
* @param value
* Value to check.
* @param min
* Minimal value (inclusive).
- *
+ *
* @throws ConstraintViolationException
* The value was less than min
.
*/
@@ -185,14 +186,14 @@ public static void requireArgMin(@NotNull final String name, @NotNull final long
/**
* Checks if the given value is valid.
- *
+ *
* @param validator
* Validator to use.
* @param value
* Value to check.
* @param groups
* Group or list of groups targeted for validation (defaults to {@link Default})
- *
+ *
* @throws ConstraintViolationException
* The value is invalid.
*/
@@ -203,11 +204,15 @@ public static void requireValid(@NotNull final Validator validator, @NotNull fin
if (!constraintViolations.isEmpty()) {
final StringBuilder sb = new StringBuilder();
for (final ConstraintViolation
null
value returns {@literal true}.
+ * Value to check. A {@literal null} value returns {@literal true}.
*
* @return TRUE if it's a valid key, else FALSE.
*/
diff --git a/core/src/main/java/org/fuin/objects4j/core/CurrencyAmount.java b/core/src/main/java/org/fuin/objects4j/core/CurrencyAmount.java
index 9c54a45..861c2f1 100644
--- a/core/src/main/java/org/fuin/objects4j/core/CurrencyAmount.java
+++ b/core/src/main/java/org/fuin/objects4j/core/CurrencyAmount.java
@@ -23,10 +23,11 @@
import org.fuin.objects4j.common.Contract;
import org.fuin.objects4j.common.HasPublicStaticIsValidMethod;
import org.fuin.objects4j.common.HasPublicStaticValueOfMethod;
-import org.fuin.objects4j.common.Immutable;
+import javax.annotation.concurrent.Immutable;
import org.fuin.objects4j.ui.Label;
import org.fuin.objects4j.ui.ShortLabel;
+import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
@@ -43,6 +44,7 @@
@HasPublicStaticValueOfMethod(method = "valueOf", param = String.class)
public final class CurrencyAmount implements ValueObjectWithBaseTypenull
argument will return null
.
+ * Converts a big decimal into a canonical string representation. A {@literal null} argument will return {@literal null}.
*
* @param amount
* Amount to convert.
@@ -227,8 +229,8 @@ public static String amountToStr(final BigDecimal amount) {
}
/**
- * Converts an amount from its canonical string representation back into a big decimal. A null
argument will return
- * null
.
+ * Converts an amount from its canonical string representation back into a big decimal. A {@literal null} argument will return
+ * {@literal null}.
*
* @param amount
* Amount string to convert.
diff --git a/core/src/main/java/org/fuin/objects4j/core/DayOfTheWeek.java b/core/src/main/java/org/fuin/objects4j/core/DayOfTheWeek.java
index 8359e80..008d4e8 100644
--- a/core/src/main/java/org/fuin/objects4j/core/DayOfTheWeek.java
+++ b/core/src/main/java/org/fuin/objects4j/core/DayOfTheWeek.java
@@ -23,13 +23,14 @@
import org.fuin.objects4j.common.Contract;
import org.fuin.objects4j.common.HasPublicStaticIsValidMethod;
import org.fuin.objects4j.common.HasPublicStaticValueOfMethod;
-import org.fuin.objects4j.common.Immutable;
-import org.fuin.objects4j.common.Nullable;
+import javax.annotation.concurrent.Immutable;
+import jakarta.annotation.Nullable;
import org.fuin.objects4j.ui.Label;
import org.fuin.objects4j.ui.Prompt;
import org.fuin.objects4j.ui.ShortLabel;
import org.fuin.objects4j.ui.Tooltip;
+import java.io.Serial;
import java.io.Serializable;
import java.time.DayOfWeek;
import java.util.ArrayList;
@@ -49,6 +50,7 @@
@HasPublicStaticValueOfMethod(method = "valueOf", param = DayOfWeek.class)
public final class DayOfTheWeek implements ValueObjectWithBaseTypenull
.
+ * Array of key values or {@literal null}.
*
* @return Replaced message.
*/
@@ -136,9 +136,9 @@ private static String nullSafeAsString(final Object obj) {
* Replaces all variables inside a string with values from a map.
*
* @param str
- * Text with variables (Format: ${key} ) - May be null
or empty.
+ * Text with variables (Format: ${key} ) - May be {@literal null} or empty.
* @param vars
- * Map with key/values (both of type String
- Cannot be null
.
+ * Map with key/values (both of type String
- Cannot be {@literal null}.
*
* @return String with replaced variables. Unknown variables will remain unchanged.
*/
diff --git a/core/src/main/java/org/fuin/objects4j/core/LocaleStrValidator.java b/core/src/main/java/org/fuin/objects4j/core/LocaleStrValidator.java
index cba948b..785d2fc 100644
--- a/core/src/main/java/org/fuin/objects4j/core/LocaleStrValidator.java
+++ b/core/src/main/java/org/fuin/objects4j/core/LocaleStrValidator.java
@@ -32,6 +32,7 @@ public final class LocaleStrValidator implements ConstraintValidatornull
and the trimmed size is at least one.
+ * The string is not {@literal null} and the trimmed size is at least one.
*/
// CHECKSTYLE:OFF
@Documented
diff --git a/core/src/main/java/org/fuin/objects4j/core/TrimmedNotEmptyValidator.java b/core/src/main/java/org/fuin/objects4j/core/TrimmedNotEmptyValidator.java
index 9a071c7..028a68c 100644
--- a/core/src/main/java/org/fuin/objects4j/core/TrimmedNotEmptyValidator.java
+++ b/core/src/main/java/org/fuin/objects4j/core/TrimmedNotEmptyValidator.java
@@ -24,7 +24,7 @@
import org.fuin.objects4j.common.Contract;
/**
- * Check that a given string is not null
and the trimmed length is greater than zero.
+ * Check that a given string is not {@literal null} and the trimmed length is greater than zero.
*/
public class TrimmedNotEmptyValidator implements ConstraintValidatornull
parameter will return
+ * Verifies that the given value can be converted into a value object using the factory. A {@literal null} parameter will return
* {@literal true}.
*
* @param value
@@ -55,7 +55,7 @@ public interface ValueObjectConverternull
.
+ * Converts the base type into an value object. A {@literal null} parameter will return {@literal null}.
*
* @param value
* Representation of the value object as base type.
@@ -65,7 +65,7 @@ public interface ValueObjectConverternull
.
+ * Converts the value object into an base type. A {@literal null} parameter will return {@literal null}.
*
* @param value
* Value object.
diff --git a/core/src/main/java/org/fuin/objects4j/core/ValueOfCapable.java b/core/src/main/java/org/fuin/objects4j/core/ValueOfCapable.java
index a5269e0..8e63488 100644
--- a/core/src/main/java/org/fuin/objects4j/core/ValueOfCapable.java
+++ b/core/src/main/java/org/fuin/objects4j/core/ValueOfCapable.java
@@ -31,7 +31,7 @@ public interface ValueOfCapablenull
value returns null
.
+ * Value to convert. A {@literal null} value returns {@literal null}.
*
* @return Converted value.
*/
diff --git a/core/src/main/java/org/fuin/objects4j/core/WeeklyOpeningHours.java b/core/src/main/java/org/fuin/objects4j/core/WeeklyOpeningHours.java
index 9ec3d93..3e12a2a 100644
--- a/core/src/main/java/org/fuin/objects4j/core/WeeklyOpeningHours.java
+++ b/core/src/main/java/org/fuin/objects4j/core/WeeklyOpeningHours.java
@@ -23,11 +23,12 @@
import org.fuin.objects4j.common.Contract;
import org.fuin.objects4j.common.HasPublicStaticIsValidMethod;
import org.fuin.objects4j.common.HasPublicStaticValueOfMethod;
-import org.fuin.objects4j.common.Immutable;
-import org.fuin.objects4j.common.Nullable;
+import javax.annotation.concurrent.Immutable;
+import jakarta.annotation.Nullable;
import org.fuin.objects4j.core.DayOpeningHours.Change;
import org.fuin.objects4j.ui.Prompt;
+import java.io.Serial;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
@@ -47,27 +48,28 @@
@HasPublicStaticValueOfMethod
public final class WeeklyOpeningHours extends AbstractStringValueObject implements Iterable* This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 3 of the License, or (at your option) any * later version. - * + *
* This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. - * + *
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see null
parameter will return
+ * Verifies that the given value can be converted into a value object using the factory. A {@literal null} parameter will return
* {@literal true}.
*
* @param value Value to check.
@@ -41,7 +41,7 @@ public final boolean isValid(final String value) {
}
/**
- * Converts the base type into an value object. A null
parameter will return null
.
+ * Converts the base type into an value object. A {@literal null} parameter will return {@literal null}.
*
* @param value Representation of the value object as base type.
* @return Value object.
@@ -54,7 +54,7 @@ public final Currency toVO(final String value) {
}
/**
- * Converts the value object into an base type. A null
parameter will return null
.
+ * Converts the value object into an base type. A {@literal null} parameter will return {@literal null}.
*
* @param value Value object.
* @return Base type.
diff --git a/jsonb/src/test/java/org/fuin/objects4j/jsonb/AnyStr.java b/jsonb/src/test/java/org/fuin/objects4j/jsonb/AnyStr.java
index 86bac49..50ecc15 100644
--- a/jsonb/src/test/java/org/fuin/objects4j/jsonb/AnyStr.java
+++ b/jsonb/src/test/java/org/fuin/objects4j/jsonb/AnyStr.java
@@ -4,12 +4,15 @@
import org.fuin.objects4j.common.Contract;
import org.fuin.objects4j.core.AbstractStringValueObject;
+import java.io.Serial;
+
/**
* Test implementation for a {@link AbstractStringValueObject}.
*/
@ArchIgnore
public final class AnyStr extends AbstractStringValueObject {
+ @Serial
private static final long serialVersionUID = 1L;
private String str;
diff --git a/junit/src/main/java/org/fuin/objects4j/junit/HasPublicStaticIsValidMethodCondition.java b/junit/src/main/java/org/fuin/objects4j/junit/HasPublicStaticIsValidMethodCondition.java
index f4beae4..876e55a 100644
--- a/junit/src/main/java/org/fuin/objects4j/junit/HasPublicStaticIsValidMethodCondition.java
+++ b/junit/src/main/java/org/fuin/objects4j/junit/HasPublicStaticIsValidMethodCondition.java
@@ -14,6 +14,10 @@
import static com.tngtech.archunit.lang.ConditionEvent.createMessage;
+/**
+ * Verifies if a class has a public static "isValid" method that matches the conditions defined
+ * with the annotation {@link HasPublicStaticIsValidMethods} attached to that class.
+ */
public final class HasPublicStaticIsValidMethodCondition extends ArchCondition
null
.
+ * @return Label information - Never {@literal null}.
*/
public final ClassTextInfo createClassInfo(@NotNull final Class> clasz, @NotNull final Locale locale,
@NotNull final Class extends Annotation> annotationClasz) {
@@ -101,7 +101,7 @@ public final ClassTextInfo createClassInfo(@NotNull final Class> clasz, @NotNu
* @param annotationClasz
* Type of annotation to find.
*
- * @return List of informations - Never null
, but may be empty.
+ * @return List of informations - Never {@literal null}, but may be empty.
*/
public final Listnull
in case the annotation was not found.
+ * @return Label information - May be {@literal null} in case the annotation was not found.
*/
public final FieldTextInfo createFieldInfo(@NotNull final Field field, @NotNull final Locale locale,
@NotNull final Class extends Annotation> annotationClasz) {
@@ -172,7 +172,7 @@ public final FieldTextInfo createFieldInfo(@NotNull final Field field, @NotNull
/**
* Returns the text for the annotation. If no entry is found in the resource bundle for Annotation#key()
then
- * Annotation#value()
will be returned instead. If Annotation#value()
is also empty then null
is
+ * Annotation#value()
will be returned instead. If Annotation#value()
is also empty then {@literal null} is
* returned. If Annotation#key()
is empty defaultKey
will be used as key in the properties file.
*
* @param bundle
@@ -182,7 +182,7 @@ public final FieldTextInfo createFieldInfo(@NotNull final Field field, @NotNull
* @param defaultKey
* Default key if Annotation#key()
is empty.
*
- * @return Text or null
.
+ * @return Text or {@literal null}.
*/
private String getText(@NotNull final ResourceBundle bundle, @NotNull final Annotation annotation, @NotNull final String defaultKey) {
@@ -217,7 +217,7 @@ private String getText(@NotNull final ResourceBundle bundle, @NotNull final Anno
* Class to use if the Annotation#bundle()
is empty. Example: a.b.c.MyClass
is used as
* a/b/c/MyClass.properties
(default) or a/b/c/MyClass_en.properties
(with {@link Locale#ENGLISH}).
*
- * @return Resource bundle - Never null
.
+ * @return Resource bundle - Never {@literal null}.
*/
private ResourceBundle getResourceBundle(@NotNull final Annotation annotation, @NotNull final Locale locale,
@NotNull final Class> clasz) {
@@ -232,12 +232,12 @@ private ResourceBundle getResourceBundle(@NotNull final Annotation annotation, @
}
/**
- * Returns null
if the argument is an empty string.
+ * Returns {@literal null} if the argument is an empty string.
*
* @param value
* Argument to check.
*
- * @return Argument or null
.
+ * @return Argument or {@literal null}.
*/
private final String toNullableString(final String value) {
if (value.equals("")) {
@@ -262,9 +262,9 @@ private String getKey(final Annotation annotation) {
* Calls a method with no arguments using reflection and maps all errors into a runtime exception.
*
* @param obj
- * The object the underlying method is invoked from - Cannot be null
.
+ * The object the underlying method is invoked from - Cannot be {@literal null}.
* @param methodName
- * Name of the Method - Cannot be null
.
+ * Name of the Method - Cannot be {@literal null}.
*
* @return The result of dispatching the method represented by this object on obj
with parameters args
.
*
@@ -280,13 +280,13 @@ private static null
.
+ * The object the underlying method is invoked from - Cannot be {@literal null}.
* @param methodName
- * Name of the Method - Cannot be null
or empty.
+ * Name of the Method - Cannot be {@literal null} or empty.
* @param argTypes
- * The list of parameters - May be null
.
+ * The list of parameters - May be {@literal null}.
* @param args
- * Arguments the arguments used for the method call - May be null
if "argTypes" is also null
.
+ * Arguments the arguments used for the method call - May be {@literal null} if "argTypes" is also {@literal null}.
*
* @return The result of dispatching the method represented by this object on obj
with parameters args
.
*/
@@ -352,11 +352,11 @@ private static void checkSameLength(final Class>[] argTypes, final Object[] ar
* Creates a textual representation of the method.
*
* @param returnType
- * Return type of the method - Cannot be null
.
+ * Return type of the method - Cannot be {@literal null}.
* @param methodName
- * Name of the method - Cannot be null
.
+ * Name of the method - Cannot be {@literal null}.
* @param argTypes
- * The list of parameters - Can be null
.
+ * The list of parameters - Can be {@literal null}.
*
* @return Textual signature of the method.
*/
diff --git a/ui/src/main/java/org/fuin/objects4j/ui/ClassTextInfo.java b/ui/src/main/java/org/fuin/objects4j/ui/ClassTextInfo.java
index 654881a..ed83da2 100644
--- a/ui/src/main/java/org/fuin/objects4j/ui/ClassTextInfo.java
+++ b/ui/src/main/java/org/fuin/objects4j/ui/ClassTextInfo.java
@@ -19,7 +19,7 @@
import jakarta.validation.constraints.NotNull;
import org.fuin.objects4j.common.Contract;
-import org.fuin.objects4j.common.Immutable;
+import javax.annotation.concurrent.Immutable;
/**
* Stores some text associated with a class.
@@ -35,7 +35,7 @@ public final class ClassTextInfo extends TextInfo {
* @param clasz
* Class the text belongs to.
* @param text
- * Text or null
.
+ * Text or {@literal null}.
*/
public ClassTextInfo(@NotNull final Class> clasz, final String text) {
super(text);
@@ -46,7 +46,7 @@ public ClassTextInfo(@NotNull final Class> clasz, final String text) {
/**
* Returns the class the text belongs to.
*
- * @return Class - Never null
.
+ * @return Class - Never {@literal null}.
*/
public final Class> getClasz() {
return clasz;
diff --git a/ui/src/main/java/org/fuin/objects4j/ui/FieldTextInfo.java b/ui/src/main/java/org/fuin/objects4j/ui/FieldTextInfo.java
index b4d12f8..8e350e5 100644
--- a/ui/src/main/java/org/fuin/objects4j/ui/FieldTextInfo.java
+++ b/ui/src/main/java/org/fuin/objects4j/ui/FieldTextInfo.java
@@ -46,16 +46,16 @@ public FieldTextInfo(@NotNull final Field field, final String text) {
/**
* Returns the field.
*
- * @return Field - Never null
.
+ * @return Field - Never {@literal null}.
*/
public final Field getField() {
return field;
}
/**
- * Returns the text of the label or the name of the field if the text is null
.
+ * Returns the text of the label or the name of the field if the text is {@literal null}.
*
- * @return Long text or field name - Never null
.
+ * @return Long text or field name - Never {@literal null}.
*/
public final String getTextOrField() {
final String text = getText();
diff --git a/ui/src/main/java/org/fuin/objects4j/ui/FontSize.java b/ui/src/main/java/org/fuin/objects4j/ui/FontSize.java
index ebda004..0eabd41 100644
--- a/ui/src/main/java/org/fuin/objects4j/ui/FontSize.java
+++ b/ui/src/main/java/org/fuin/objects4j/ui/FontSize.java
@@ -19,8 +19,9 @@
import jakarta.validation.constraints.NotNull;
import org.fuin.objects4j.common.Contract;
-import org.fuin.objects4j.common.Immutable;
+import javax.annotation.concurrent.Immutable;
+import java.io.Serial;
import java.io.Serializable;
import java.text.DecimalFormat;
@@ -30,6 +31,7 @@
@Immutable
public final class FontSize implements Serializable {
+ @Serial
private static final long serialVersionUID = -1572749922357083439L;
private final float size;
diff --git a/ui/src/main/java/org/fuin/objects4j/ui/TableColumnInfo.java b/ui/src/main/java/org/fuin/objects4j/ui/TableColumnInfo.java
index 58ac0bc..a5d34c5 100644
--- a/ui/src/main/java/org/fuin/objects4j/ui/TableColumnInfo.java
+++ b/ui/src/main/java/org/fuin/objects4j/ui/TableColumnInfo.java
@@ -20,7 +20,7 @@
import jakarta.annotation.Nullable;
import jakarta.validation.constraints.NotNull;
import org.fuin.objects4j.common.Contract;
-import org.fuin.objects4j.common.Immutable;
+import javax.annotation.concurrent.Immutable;
import java.lang.reflect.Field;
import java.util.ArrayList;
@@ -107,7 +107,7 @@ public TableColumnInfo(@NotNull final Field field, @Nullable final String text,
/**
* Returns the field.
*
- * @return Field - Never null
.
+ * @return Field - Never {@literal null}.
*/
public final Field getField() {
return field;
@@ -161,7 +161,7 @@ public final int getPos() {
/**
* The name of the getter for the table column field.
*
- * @return Getter name - Never null
.
+ * @return Getter name - Never {@literal null}.
*/
public final String getGetter() {
return getter;
@@ -235,7 +235,7 @@ public static Listnull
.
+ * @return Information or {@literal null}.
*/
public static TableColumnInfo create(@NotNull final Field field, @NotNull final Locale locale) {
diff --git a/ui/src/main/java/org/fuin/objects4j/ui/TextFieldInfo.java b/ui/src/main/java/org/fuin/objects4j/ui/TextFieldInfo.java
index b2b08c1..38a9912 100644
--- a/ui/src/main/java/org/fuin/objects4j/ui/TextFieldInfo.java
+++ b/ui/src/main/java/org/fuin/objects4j/ui/TextFieldInfo.java
@@ -19,7 +19,7 @@
import jakarta.validation.constraints.NotNull;
import org.fuin.objects4j.common.Contract;
-import org.fuin.objects4j.common.Immutable;
+import javax.annotation.concurrent.Immutable;
import java.lang.reflect.Field;
import java.util.Locale;
@@ -55,7 +55,7 @@ public TextFieldInfo(@NotNull final Field field, final int width) {
/**
* Returns the field.
*
- * @return Field - Never null
+ * @return Field - Never {@literal null}
*/
public final Field getField() {
return field;
@@ -101,7 +101,7 @@ public final boolean equals(final Object obj) {
* @param locale
* Locale to use.
*
- * @return Information or null
.
+ * @return Information or {@literal null}.
*/
public static TextFieldInfo create(@NotNull final Field field, @NotNull final Locale locale) {
diff --git a/ui/src/main/java/org/fuin/objects4j/ui/TextInfo.java b/ui/src/main/java/org/fuin/objects4j/ui/TextInfo.java
index 5745bb5..df362d5 100644
--- a/ui/src/main/java/org/fuin/objects4j/ui/TextInfo.java
+++ b/ui/src/main/java/org/fuin/objects4j/ui/TextInfo.java
@@ -17,7 +17,7 @@
*/
package org.fuin.objects4j.ui;
-import org.fuin.objects4j.common.Immutable;
+import javax.annotation.concurrent.Immutable;
/**
* Stores some text.
@@ -31,7 +31,7 @@ public abstract class TextInfo {
* Constructor with text.
*
* @param text
- * Text or null
.
+ * Text or {@literal null}.
*/
public TextInfo(final String text) {
super();
@@ -41,7 +41,7 @@ public TextInfo(final String text) {
/**
* Returns the text.
*
- * @return Text or null
.
+ * @return Text or {@literal null}.
*/
public final String getText() {
return text;