directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject directory-fortress-core git commit: FC-191 - sonar cleanup - write to static
Date Mon, 10 Oct 2016 13:09:54 GMT
Repository: directory-fortress-core
Updated Branches:
  refs/heads/master 184b17a80 -> 5f4a44167


 FC-191 - sonar cleanup - write to static


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/5f4a4416
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/5f4a4416
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/5f4a4416

Branch: refs/heads/master
Commit: 5f4a44167810159d5b7ca02a0569ae18ce4ce8bd
Parents: 184b17a
Author: Shawn McKinney <smckinney@apache.org>
Authored: Mon Oct 10 07:48:28 2016 -0500
Committer: Shawn McKinney <smckinney@apache.org>
Committed: Mon Oct 10 07:48:28 2016 -0500

----------------------------------------------------------------------
 .../org/apache/directory/fortress/core/util/VUtil.java   | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/5f4a4416/src/main/java/org/apache/directory/fortress/core/util/VUtil.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/util/VUtil.java b/src/main/java/org/apache/directory/fortress/core/util/VUtil.java
index 4399d5a..b6ac995 100755
--- a/src/main/java/org/apache/directory/fortress/core/util/VUtil.java
+++ b/src/main/java/org/apache/directory/fortress/core/util/VUtil.java
@@ -55,9 +55,9 @@ import org.slf4j.LoggerFactory;
 public final class VUtil implements ConstraintValidator
 {
     /**
-     * enum specifies what type of constraint is being targeted - User or Rold.
+     * enum specifies what type of constraint is being targeted - User or Role.
      */
-    public static enum ConstraintType
+    public enum ConstraintType
     {
         /**
          * Specifies {@link org.apache.directory.fortress.core.model.User}
@@ -73,9 +73,6 @@ public final class VUtil implements ConstraintValidator
     private static final org.slf4j.Logger LOG = LoggerFactory.getLogger( CLS_NM );
     private static int maximumFieldLen = 130;
     private static final String VALIDATE_LENGTH = "field.length";
-    private static List<Validator> validators;
-    private String DSDVALIDATOR;
-
     private static final int MAXIMUM_FIELD_LEN = maximumFieldLen;
     private static final int maxFieldLength = MAXIMUM_FIELD_LEN;
     private static final int TIME_LEN = 4;
@@ -87,9 +84,11 @@ public final class VUtil implements ConstraintValidator
     private static final char SATURDAY = '7';
     private static final SimpleDateFormat TIME_FORMATER = getLenientFormat( TIME_FORMAT );
     private static final SimpleDateFormat DATE_FORMATER = getLenientFormat( DATE_FORMAT );
-
     private static volatile VUtil sINSTANCE = null;
 
+    private List<Validator> validators;
+    private String DSDVALIDATOR;
+
     public static VUtil getInstance()
     {
         if(sINSTANCE == null)


Mime
View raw message