Skip to content

Commit a4a0e9e

Browse files
Knut Anders Hatlentrondn
authored andcommitted
Fixed FindBugs warning (dangerous use of non-short-circuit logic)
1 parent 14ed5f8 commit a4a0e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/opensolaris/opengrok/analysis/TextAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public final void analyze(Document doc, InputStream in) throws IOException {
4545
(head[0] == (byte)0xFF && head[1] == (byte)0xFE)) {
4646
charset = "UTF-16";
4747
in.reset();
48-
} else if (br >= 3 & head[0] == (byte)0xEF && head[1] == (byte)0xBB &&
48+
} else if (br >= 3 && head[0] == (byte)0xEF && head[1] == (byte)0xBB &&
4949
head[2] == (byte)0xBF) {
5050
// InputStreamReader does not properly discard BOM on UTF8 streams,
5151
// so don't reset the stream.

0 commit comments

Comments
 (0)