We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 733dc26 commit 46a2c6bCopy full SHA for 46a2c6b
1 file changed
src/main/java/org/apache/commons/io/input/BOMInputStream.java
@@ -202,7 +202,8 @@ public boolean hasBOM(final ByteOrderMark bom) throws IOException {
202
if (!boms.contains(bom)) {
203
throw new IllegalArgumentException("Stream not configure to detect " + bom);
204
}
205
- return byteOrderMark != null && getBOM().equals(bom);
+ getBOM();
206
+ return byteOrderMark != null && byteOrderMark.equals(bom);
207
208
209
/**
0 commit comments