commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1742677 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java
Date Sat, 07 May 2016 00:19:30 GMT
Author: ggregory
Date: Sat May  7 00:19:30 2016
New Revision: 1742677

URL: http://svn.apache.org/viewvc?rev=1742677&view=rev
Log:
Fix Checkstyle: always use blocks.

Modified:
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java?rev=1742677&r1=1742676&r2=1742677&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java
(original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java
Sat May  7 00:19:30 2016
@@ -766,7 +766,9 @@ public class BOMInputStreamTest {
             is.setEncoding(charSetName);
             documentBuilder.parse(is);
         } catch (SAXParseException e) {
-            if (e.getMessage().contains(charSetName)) return false;
+            if (e.getMessage().contains(charSetName)) {
+                return false;
+            }
         }
         return true;
     }



Mime
View raw message