diff --git a/common/source/java/ch/systemsx/cisd/common/collections/ValidatorUtils.java b/common/source/java/ch/systemsx/cisd/common/collections/ValidatorUtils.java index a0e40daab9411f6f32fb166c49086801f4c25f45..794aced7f3b7652b285275697ace2febed89b683 100644 --- a/common/source/java/ch/systemsx/cisd/common/collections/ValidatorUtils.java +++ b/common/source/java/ch/systemsx/cisd/common/collections/ValidatorUtils.java @@ -29,8 +29,8 @@ public final class ValidatorUtils { /** - * A <code>Validator</code> implementation which check whether given <code>Object</code> is - * not <code>null</code>. + * A <code>Validator</code> implementation which check whether given <code>Object</code> is not + * <code>null</code>. */ private final static IValidator<Object> NOT_NULL_VALIDATOR = new IValidator<Object>() { @@ -110,7 +110,7 @@ public final class ValidatorUtils /** Returns a typed validator for non-<code>null</code> objects. */ @SuppressWarnings( - { "cast", "unchecked" }) + { "unchecked" }) public static final <T> IValidator<T> getNotNullValidator() { return (IValidator<T>) NOT_NULL_VALIDATOR; @@ -118,7 +118,7 @@ public final class ValidatorUtils /** Returns a typed validator which always returns <code>true</code>. */ @SuppressWarnings( - { "cast", "unchecked" }) + { "unchecked" }) public static final <T> IValidator<T> getAlwaysTrueValidator() { return (IValidator<T>) ALWAYS_TRUE;