directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1715330 - /directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Strings.java
Date Fri, 20 Nov 2015 08:57:36 GMT
Author: elecharny
Date: Fri Nov 20 08:57:36 2015
New Revision: 1715330

URL: http://svn.apache.org/viewvc?rev=1715330&view=rev
Log:
Used a constant

Modified:
    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/Strings.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Strings.java?rev=1715330&r1=1715329&r2=1715330&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 Fri
Nov 20 08:57:36 2015
@@ -1590,7 +1590,7 @@ public final class Strings
     {
         if ( string == null )
         {
-            return new byte[0];
+            return EMPTY_BYTES;
         }
 
         try



Mime
View raw message