commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1739131 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/WriterOutputStream.java
Date Thu, 14 Apr 2016 16:02:43 GMT
Author: ggregory
Date: Thu Apr 14 16:02:43 2016
New Revision: 1739131

URL: http://svn.apache.org/viewvc?rev=1739131&view=rev
Log:
Always use blocks.

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/WriterOutputStream.java

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/WriterOutputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/WriterOutputStream.java?rev=1739131&r1=1739130&r2=1739131&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/WriterOutputStream.java
(original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/WriterOutputStream.java
Thu Apr 14 16:02:43 2016
@@ -311,7 +311,9 @@ public class WriterOutputStream extends
     }
 
     private static void checkIbmJdkWithBrokenUTF16(Charset charset){
-        if (!"UTF-16".equals(charset.name())) return;
+        if (!"UTF-16".equals(charset.name())) {
+            return;
+        }
         final String TEST_STRING_2 = "v\u00e9s";
         byte[] bytes = TEST_STRING_2.getBytes(charset);
 



Mime
View raw message