ICU-8699 Never print stack trace in production code

X-SVN-Rev: 34864
This commit is contained in:
George Rhoten 2014-01-10 19:52:56 +00:00
parent 181351be76
commit a94152774c

View File

@ -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<String, RbnfLenientScanner> 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;
}
}
}
}