Make code style of hasBOM() consistent with getBOMCharsetName()
@@ -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);
}
/**
