Skip to content

Commit 5f88079

Browse files
committed
Merge branch 'IO-553'
2 parents 39bfb46 + 9543f75 commit 5f88079

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ The <action> type attribute can be add,update,fix,remove.
4747
<body>
4848
<!-- The release date is the date RC is cut -->
4949
<release version="2.6" date="2017-MM-DD" description="New features and bug fixes.">
50+
<action issue="IO-553" dev="britter" type="update" due-to="Michael Ernst">
51+
Make code style of hasBOM() consistent with getBOMCharsetName()
52+
</action>
5053
<action issue="IO-546" dev="pschumacher" type="fix" due-to="Tomas Celaya">
5154
ClosedOutputStream#flush should throw
5255
</action>

src/main/java/org/apache/commons/io/input/BOMInputStream.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ public boolean hasBOM(final ByteOrderMark bom) throws IOException {
202202
if (!boms.contains(bom)) {
203203
throw new IllegalArgumentException("Stream not configure to detect " + bom);
204204
}
205-
return byteOrderMark != null && getBOM().equals(bom);
205+
getBOM();
206+
return byteOrderMark != null && byteOrderMark.equals(bom);
206207
}
207208

208209
/**

0 commit comments

Comments
 (0)