Skip to content

Commit 46a2c6b

Browse files
committed
Make code style of hasBOM() consistent with getBOMCharsetName()
1 parent 733dc26 commit 46a2c6b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)