From 3eafd4cf290d0272eeb4799fd45b1658111d5a37 Mon Sep 17 00:00:00 2001 From: Travis Keep Date: Wed, 16 Jan 2013 21:22:11 +0000 Subject: [PATCH] ICU-9508 Uncomment old CurrencyInfo constructor. Add test confirming its presence. X-SVN-Rev: 33057 --- .../classes/core/src/com/ibm/icu/text/CurrencyMetaInfo.java | 4 +--- .../core/src/com/ibm/icu/dev/test/util/CurrencyTest.java | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyMetaInfo.java b/icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyMetaInfo.java index 64d4f07bc3..013cc5aa06 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyMetaInfo.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyMetaInfo.java @@ -458,12 +458,10 @@ public class CurrencyMetaInfo { * @param to end date in milliseconds. This is one second before midnight at the end of the last day on which the currency was used, GMT. * @param priority priority value, 0 is highest priority, increasing values are lower * @stable ICU 4.4 - */ - /* + */ public CurrencyInfo(String region, String code, long from, long to, int priority) { this(region, code, from, to, priority, true); } - */ /** * Constructs a currency info. diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/CurrencyTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/CurrencyTest.java index 70ba86f479..6583d57ca9 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/CurrencyTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/CurrencyTest.java @@ -725,4 +725,8 @@ public class CurrencyTest extends TestFmwk { assertEquals("getDisplayName() for " + data[0] + " in locale " + root, data[0], cur.getDisplayName(root)); } } + + public void TestCurrencyInfoCtor() { + new CurrencyMetaInfo.CurrencyInfo("region", "code", 0, 0, 1); + } }