harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r909146 - in /harmony/enhanced/classlib/trunk/modules/nio/src: main/java/common/java/nio/channels/FileLock.java test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java
Date Thu, 11 Feb 2010 21:05:46 GMT
Author: hindessm
Date: Thu Feb 11 21:05:45 2010
New Revision: 909146

URL: http://svn.apache.org/viewvc?rev=909146&view=rev
Log:
Use append(character) rather than append(String).

Modified:
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/channels/FileLock.java
    harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/channels/FileLock.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/channels/FileLock.java?rev=909146&r1=909145&r2=909146&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/channels/FileLock.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/channels/FileLock.java
Thu Feb 11 21:05:45 2010
@@ -202,7 +202,7 @@
         buffer.append(size);
         buffer.append(", shared=");
         buffer.append(Boolean.toString(shared));
-        buffer.append("]");
+        buffer.append(']');
         return buffer.toString();
     }
 }

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java?rev=909146&r1=909145&r2=909146&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java
Thu Feb 11 21:05:45 2010
@@ -1382,7 +1382,7 @@
     public void testReceiveSend_8K() throws Exception {
         StringBuffer str8k = new StringBuffer();
         for (int i = 0; i < 8 * CAPACITY_1KB; i++) {
-            str8k.append("a");
+            str8k.append('a');
         }
         String str = str8k.toString();
         this.channel1.socket().bind(localAddr2);
@@ -1393,7 +1393,7 @@
     public void testReceiveSend_64K() throws Exception {
         StringBuffer str64k = new StringBuffer();
         for (int i = 0; i < CAPACITY_64KB; i++) {
-            str64k.append("a");
+            str64k.append('a');
         }
         String str = str64k.toString();
         try {



Mime
View raw message