commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [1/3] commons-io git commit: Make code style of hasBOM() consistent with getBOMCharsetName()
Date Sat, 14 Oct 2017 11:58:41 GMT
Repository: commons-io
Updated Branches:
  refs/heads/master 39bfb4645 -> 5f8807995


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


Project: http://git-wip-us.apache.org/repos/asf/commons-io/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-io/commit/46a2c6be
Tree: http://git-wip-us.apache.org/repos/asf/commons-io/tree/46a2c6be
Diff: http://git-wip-us.apache.org/repos/asf/commons-io/diff/46a2c6be

Branch: refs/heads/master
Commit: 46a2c6bebe30989d51d59e14def38a82e8edfd78
Parents: 733dc26
Author: Michael Ernst <mernst@cs.washington.edu>
Authored: Fri Sep 15 11:19:18 2017 -0700
Committer: Michael Ernst <mernst@cs.washington.edu>
Committed: Fri Sep 15 11:19:18 2017 -0700

----------------------------------------------------------------------
 src/main/java/org/apache/commons/io/input/BOMInputStream.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-io/blob/46a2c6be/src/main/java/org/apache/commons/io/input/BOMInputStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/io/input/BOMInputStream.java b/src/main/java/org/apache/commons/io/input/BOMInputStream.java
index 02b4f2f..d01ba9c 100644
--- a/src/main/java/org/apache/commons/io/input/BOMInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/BOMInputStream.java
@@ -202,7 +202,8 @@ public class BOMInputStream extends ProxyInputStream {
         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);
     }
 
     /**


Mime
View raw message