From 0654101831d61c66fc76421c7f2757e82c61cd48 Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Tue, 21 Jan 2014 15:40:01 +0000 Subject: [PATCH] ICU-10484 Fixed a couple of issues reported by secureCheck. X-SVN-Rev: 34947 --- icu4j/main/shared/data/security.policy | 5 ++++- .../src/com/ibm/icu/dev/test/format/PluralRulesTest.java | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/icu4j/main/shared/data/security.policy b/icu4j/main/shared/data/security.policy index 74c20e7eb5..05a44915e4 100644 --- a/icu4j/main/shared/data/security.policy +++ b/icu4j/main/shared/data/security.policy @@ -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. * //#******************************************************************************* //#* 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 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 diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/PluralRulesTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/PluralRulesTest.java index 1ba67997e1..486755c916 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/PluralRulesTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/PluralRulesTest.java @@ -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. ******************************************************************************* */ @@ -52,8 +52,6 @@ import com.ibm.icu.util.ULocale; */ public class PluralRulesTest extends TestFmwk { - static boolean USE_ALT = System.getProperty("alt_plurals") != null; - PluralRulesFactory factory = PluralRulesFactory.NORMAL; public static void main(String[] args) throws Exception {