[hornetq-commits] JBoss hornetq SVN: r10594 - trunk/hornetq-core/src/main/java/org/hornetq/core/config/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu May 5 13:19:40 EDT 2011


Author: borges
Date: 2011-05-05 13:19:40 -0400 (Thu, 05 May 2011)
New Revision: 10594

Modified:
   trunk/hornetq-core/src/main/java/org/hornetq/core/config/impl/Validators.java
Log:
Findbugs: make static fields all final.

Modified: trunk/hornetq-core/src/main/java/org/hornetq/core/config/impl/Validators.java
===================================================================
--- trunk/hornetq-core/src/main/java/org/hornetq/core/config/impl/Validators.java	2011-05-05 14:37:04 UTC (rev 10593)
+++ trunk/hornetq-core/src/main/java/org/hornetq/core/config/impl/Validators.java	2011-05-05 17:19:40 UTC (rev 10594)
@@ -17,27 +17,18 @@
 import org.hornetq.core.settings.impl.AddressFullMessagePolicy;
 
 /**
- * A Validators
+ * A Validators.
  *
  * @author jmesnil
- *
- *
  */
-public class Validators
+public final class Validators
 {
-
-   // Constants -----------------------------------------------------
-
-   // Attributes ----------------------------------------------------
-
-   // Static --------------------------------------------------------
-
    public static interface Validator
    {
       void validate(String name, Object value);
    }
 
-   public static Validator NO_CHECK = new Validator()
+   public static final Validator NO_CHECK = new Validator()
    {
       public void validate(final String name, final Object value)
       {
@@ -45,7 +36,7 @@
       }
    };
 
-   public static Validator NOT_NULL_OR_EMPTY = new Validator()
+   public static final Validator NOT_NULL_OR_EMPTY = new Validator()
    {
       public void validate(final String name, final Object value)
       {
@@ -57,7 +48,7 @@
       }
    };
 
-   public static Validator GT_ZERO = new Validator()
+   public static final Validator GT_ZERO = new Validator()
    {
       public void validate(final String name, final Object value)
       {
@@ -73,7 +64,7 @@
       }
    };
 
-   public static Validator PERCENTAGE = new Validator()
+   public static final Validator PERCENTAGE = new Validator()
    {
       public void validate(final String name, final Object value)
       {
@@ -87,7 +78,7 @@
       }
    };
 
-   public static Validator GE_ZERO = new Validator()
+   public static final Validator GE_ZERO = new Validator()
    {
       public void validate(final String name, final Object value)
       {
@@ -105,7 +96,7 @@
       }
    };
 
-   public static Validator MINUS_ONE_OR_GT_ZERO = new Validator()
+   public static final Validator MINUS_ONE_OR_GT_ZERO = new Validator()
    {
       public void validate(final String name, final Object value)
       {
@@ -123,7 +114,7 @@
       }
    };
 
-   public static Validator MINUS_ONE_OR_GE_ZERO = new Validator()
+   public static final Validator MINUS_ONE_OR_GE_ZERO = new Validator()
    {
       public void validate(final String name, final Object value)
       {
@@ -186,17 +177,4 @@
          }
       }
    };
-
-   // Constructors --------------------------------------------------
-
-   // Public --------------------------------------------------------
-
-   // Package protected ---------------------------------------------
-
-   // Protected -----------------------------------------------------
-
-   // Private -------------------------------------------------------
-
-   // Inner classes -------------------------------------------------
-
 }



More information about the hornetq-commits mailing list