ICU-4512 wrap properties test in try/catch for security

X-SVN-Rev: 17583
This commit is contained in:
Doug Felt 2005-05-11 16:13:23 +00:00
parent 4ad4ae521e
commit 162b0d052f

View File

@ -31,7 +31,16 @@ import com.ibm.icu.text.UnicodeSet;
public class BagFormatter {
static final boolean DEBUG = false;
public static final boolean SHOW_FILES = System.getProperty("SHOW_FILES") != null;
public static final boolean SHOW_FILES;
static {
boolean showFiles = false;
try {
showFiles = System.getProperty("SHOW_FILES") != null;
}
catch (SecurityException e) {
}
SHOW_FILES = showFiles;
}
private static final String BASE_RULES =
"'<' > '&lt;' ;" +