harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r416999 - /incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/utils/Array.java
Date Sun, 25 Jun 2006 10:17:39 GMT
Author: ndbeyer
Date: Sun Jun 25 03:17:36 2006
New Revision: 416999

URL: http://svn.apache.org/viewvc?rev=416999&view=rev
Log:
Use StringBuilder.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/utils/Array.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/utils/Array.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/utils/Array.java?rev=416999&r1=416998&r2=416999&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/utils/Array.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/utils/Array.java
Sun Jun 25 03:17:36 2006
@@ -41,7 +41,7 @@
      * @return <code>String</code> representation of the <code>array</code>
      */
     public static String toString(byte[] array, String prefix) {
-        // Prefixex to be added to the offset values
+        // Prefixes to be added to the offset values
         // in <code>String toString(byte[], String)</code> method
         final String[] offsetPrefix = {
                 "",
@@ -50,8 +50,8 @@
                 "0",
                 ""
         };
-        StringBuffer sb = new StringBuffer();
-        StringBuffer charForm = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
+        StringBuilder charForm = new StringBuilder();
         int i=0;
         for (i=0; i<array.length; i++) {
             if (i%16 == 0) {



Mime
View raw message