]> granicus.if.org Git - icu/commitdiff
ICU-8268 Fixed use of & instead of &&.
authorAbhinav Gupta <mail@abhinavg.net>
Wed, 28 Sep 2011 20:30:12 +0000 (20:30 +0000)
committerAbhinav Gupta <mail@abhinavg.net>
Wed, 28 Sep 2011 20:30:12 +0000 (20:30 +0000)
X-SVN-Rev: 30737

icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_UTF8.java

index e553ebb38bfa8fd4472af2a94e76251b7ce5bf63..3889d1d487c00712c16cfbca9d899087d87e5e36 100644 (file)
@@ -1,6 +1,6 @@
 /**
 *******************************************************************************
-* Copyright (C) 2005 - 2010, International Business Machines Corporation and  *
+* Copyright (C) 2005 - 2011, International Business Machines Corporation and  *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 */
@@ -28,7 +28,7 @@ class CharsetRecog_UTF8 extends CharsetRecognizer {
         int         confidence;
         
         if (det.fRawLength >= 3 && 
-                (input[0] & 0xFF) == 0xef && (input[1] & 0xFF) == 0xbb & (input[2] & 0xFF) == 0xbf) {
+                (input[0] & 0xFF) == 0xef && (input[1] & 0xFF) == 0xbb && (input[2] & 0xFF) == 0xbf) {
             hasBOM = true;
         }