svn commit: r1097824 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/Base64.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1097824 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/Base64.java

adrianc
Author: adrianc
Date: Fri Apr 29 14:46:18 2011
New Revision: 1097824

URL: http://svn.apache.org/viewvc?rev=1097824&view=rev
Log:
Small code cleanup in Base64.java - no functional change.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/Base64.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/Base64.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/Base64.java?rev=1097824&r1=1097823&r2=1097824&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/Base64.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/Base64.java Fri Apr 29 14:46:18 2011
@@ -209,9 +209,6 @@ public class Base64 {
         if (str == null) {
             return null;
         }
-        byte data[] = new byte[str.length()];
-
-        data = str.getBytes();
-        return new String(base64Encode(data));
+        return new String(base64Encode(str.getBytes()));
     }
 }