Skip to content

Commit 59bc597

Browse files
committed
Fix Checkstyle: always use blocks.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1742677 13f79535-47bb-0310-9956-ffa450edef68
1 parent eaeffde commit 59bc597

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,9 @@ private boolean doesSaxSupportCharacterSet(String charSetName) throws ParserConf
766766
is.setEncoding(charSetName);
767767
documentBuilder.parse(is);
768768
} catch (SAXParseException e) {
769-
if (e.getMessage().contains(charSetName)) return false;
769+
if (e.getMessage().contains(charSetName)) {
770+
return false;
771+
}
770772
}
771773
return true;
772774
}

0 commit comments

Comments
 (0)