From dc1f5c5a809e54d0220a57db1f640758877f077f Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Wed, 28 Sep 2011 20:30:12 +0000 Subject: [PATCH] ICU-8268 Fixed use of & instead of &&. X-SVN-Rev: 30737 --- .../classes/core/src/com/ibm/icu/text/CharsetRecog_UTF8.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_UTF8.java b/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_UTF8.java index e553ebb38bf..3889d1d487c 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_UTF8.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_UTF8.java @@ -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; } -- 2.40.0