ICU-10484 Fixed a couple of issues reported by secureCheck.

X-SVN-Rev: 34947
This commit is contained in:
Yoshito Umaoka 2014-01-21 15:40:01 +00:00
parent 3fa1319cc4
commit 0654101831
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
//# //#
//#******************************************************************************* //#*******************************************************************************
//#* Copyright (C) 1997-2011, International Business Machines Corporation and * //#* Copyright (C) 1997-2014, International Business Machines Corporation and *
//#* others. All Rights Reserved. * //#* others. All Rights Reserved. *
//#******************************************************************************* //#*******************************************************************************
//#* This is the ant build file for ICU4J. See readme.html for more information. //#* This is the ant build file for ICU4J. See readme.html for more information.
@ -25,6 +25,9 @@ grant
// for testing lenient decimal/group separator parsing // for testing lenient decimal/group separator parsing
permission java.util.PropertyPermission "com.ibm.icu.text.DecimalFormat.SkipExtendedSeparatorParsing", "write"; permission java.util.PropertyPermission "com.ibm.icu.text.DecimalFormat.SkipExtendedSeparatorParsing", "write";
// for setting the default time zone by the test framework
permission java.util.PropertyPermission "user.timezone", "write";
}; };
// there must be a way for code in one jar file to call code in another jar // there must be a way for code in one jar file to call code in another jar

View File

@ -1,6 +1,6 @@
/* /*
******************************************************************************* *******************************************************************************
* Copyright (C) 2007-2013, International Business Machines Corporation and * Copyright (C) 2007-2014, International Business Machines Corporation and
* others. All Rights Reserved. * others. All Rights Reserved.
******************************************************************************* *******************************************************************************
*/ */
@ -52,8 +52,6 @@ import com.ibm.icu.util.ULocale;
*/ */
public class PluralRulesTest extends TestFmwk { public class PluralRulesTest extends TestFmwk {
static boolean USE_ALT = System.getProperty("alt_plurals") != null;
PluralRulesFactory factory = PluralRulesFactory.NORMAL; PluralRulesFactory factory = PluralRulesFactory.NORMAL;
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {