diff --git a/icu4j/main/classes/collate/src/com/ibm/icu/text/RbnfScannerProviderImpl.java b/icu4j/main/classes/collate/src/com/ibm/icu/text/RbnfScannerProviderImpl.java index 55e19a1c5c..f98d47c279 100644 --- a/icu4j/main/classes/collate/src/com/ibm/icu/text/RbnfScannerProviderImpl.java +++ b/icu4j/main/classes/collate/src/com/ibm/icu/text/RbnfScannerProviderImpl.java @@ -1,6 +1,6 @@ /* ******************************************************************************* -* Copyright (C) 2009-2010, International Business Machines Corporation and * +* Copyright (C) 2009-2014, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* */ @@ -10,6 +10,7 @@ package com.ibm.icu.text; import java.util.HashMap; import java.util.Map; +import com.ibm.icu.impl.ICUDebug; import com.ibm.icu.util.ULocale; /** @@ -19,6 +20,7 @@ import com.ibm.icu.util.ULocale; * @deprecated This API is ICU internal only. */ public class RbnfScannerProviderImpl implements RbnfLenientScannerProvider { + private static final boolean DEBUG = ICUDebug.enabled("rbnf"); private Map cache; /** @@ -98,7 +100,7 @@ public class RbnfScannerProviderImpl implements RbnfLenientScannerProvider { // If we get here, it means we have a malformed set of // collation rules, which hopefully won't happen ///CLOVER:OFF - if (true){ // debug hook + if (DEBUG){ // debug hook e.printStackTrace(); System.out.println("++++"); } collator = null; @@ -270,4 +272,4 @@ public class RbnfScannerProviderImpl implements RbnfLenientScannerProvider { return result; } } -} \ No newline at end of file +}