directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1697307 - in /directory/shared/trunk/util/src/main/java/org/apache/directory/api/util: Hex.java Strings.java
Date Mon, 24 Aug 2015 03:18:25 GMT
Author: elecharny
Date: Mon Aug 24 03:18:25 2015
New Revision: 1697307

URL: http://svn.apache.org/r1697307
Log:
o Hide some arrays that should not be seen outside of the classes that use them
o Added an EMPRTY_STRING declaration

Modified:
    directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Hex.java
    directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Strings.java

Modified: directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Hex.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Hex.java?rev=1697307&r1=1697306&r2=1697307&view=diff
==============================================================================
--- directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Hex.java (original)
+++ directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Hex.java Mon Aug
24 03:18:25 2015
@@ -35,7 +35,7 @@ import org.apache.directory.api.i18n.I18
 public final class Hex
 {
     /** <hex> ::= [0x30-0x39] | [0x41-0x46] | [0x61-0x66] */
-    public static final byte[] HEX_VALUE =
+    private static final byte[] HEX_VALUE =
         {
             // 00 -> 0F
             -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
@@ -56,7 +56,7 @@ public final class Hex
     };
 
     /** Used to build output as Hex */
-    public static final char[] HEX_CHAR =
+    private static final char[] HEX_CHAR =
         { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
};
 
 

Modified: directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Strings.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Strings.java?rev=1697307&r1=1697306&r2=1697307&view=diff
==============================================================================
--- directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Strings.java (original)
+++ directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Strings.java Mon
Aug 24 03:18:25 2015
@@ -61,7 +61,7 @@ public final class Strings
         { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
};
 
     /** A table containing booleans when the corresponding char is printable */
-    public static final boolean[] IS_PRINTABLE_CHAR =
+    private static final boolean[] IS_PRINTABLE_CHAR =
         {
             // ---, ---, ---, ---, ---, ---, ---, ---
             false, false, false, false, false, false, false, false, 
@@ -97,7 +97,7 @@ public final class Strings
             true,  true,  true,  false, false, false, false, false 
     };
 
-    public static final char[] TO_LOWER_CASE =
+    private static final char[] TO_LOWER_CASE =
         {
             0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
             0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
@@ -133,7 +133,7 @@ public final class Strings
             0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF,
     };
 
-    public static final byte[] TO_LOWER_CASE_BYTE =
+    private static final byte[] TO_LOWER_CASE_BYTE =
         {
             0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
             0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
@@ -186,7 +186,7 @@ public final class Strings
     };
 
     /** upperCase = 'A' .. 'Z', '0'..'9', '-' */
-    public static final char[] UPPER_CASE =
+    private static final char[] UPPER_CASE =
         {
             0, 0, 0, 0, 0, 0, 0, 0,
             0, 0, 0, 0, 0, 0, 0, 0,
@@ -214,8 +214,11 @@ public final class Strings
             0, 0, 0, 0, 0, 0, 0, 0
     };
 
-    /** A empty byte array */
+    /** An empty byte array */
     public static final byte[] EMPTY_BYTES = new byte[0];
+    
+    /** An empty String */
+    public static final String EMPTY_STRING = "";
 
 
     /**



Mime
View raw message