[io] use non-short-circuit operator
This should have identical semantics but is less confusing to read.
MODIFY
src/test/java/org/apache/commons/io/input/compatibility/XmlStreamReader.java
src/test/java/org/apache/commons/io/input/compatibility/XmlStreamReader.java
@@ -510,7 +510,7 @@ String calculateHttpEncoding(final String cTMime, final String cTEnc,
final String bomEnc, final String xmlGuessEnc, final String xmlEnc, final InputStream is,
final boolean lenient) throws IOException {
String encoding;
- if (lenient & xmlEnc != null) {
+ if (lenient && (xmlEnc != null)) {
encoding = xmlEnc;
} else {
final boolean appXml = isAppXml(cTMime);

[io] use non-short-circuit operator

This should have identical semantics but is less confusing to read.