Make code style of hasBOM() consistent with getBOMCharsetName()
MODIFY
src/main/java/org/apache/commons/io/input/BOMInputStream.java
src/main/java/org/apache/commons/io/input/BOMInputStream.java
@@ -202,7 +202,8 @@ public boolean hasBOM(final ByteOrderMark bom) throws IOException {
if (!boms.contains(bom)) {
throw new IllegalArgumentException("Stream not configure to detect " + bom);
}
- return byteOrderMark != null && getBOM().equals(bom);
+ getBOM();
+ return byteOrderMark != null && byteOrderMark.equals(bom);
}
/**

Make code style of hasBOM() consistent with getBOMCharsetName()