From 36a4e3b5a0203fe9566b8f3e7f247a1fd9c016de Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Fri, 28 Aug 2020 16:59:08 -0700 Subject: [PATCH] ICU-21036 use StringBuilder(String str) not StringBuilder(int capacity) --- .../core/src/com/ibm/icu/dev/test/format/MeasureUnitTest.java | 2 +- .../core/src/com/ibm/icu/dev/test/format/PluralRulesTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/MeasureUnitTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/MeasureUnitTest.java index b4604c2a791..6e6369bc2f6 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/MeasureUnitTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/MeasureUnitTest.java @@ -3136,7 +3136,7 @@ public class MeasureUnitTest extends TestFmwk { * @return */ private String showBytes(byte[] contents) { - StringBuilder b = new StringBuilder('['); + StringBuilder b = new StringBuilder("["); for (int i = 0; i < contents.length; ++i) { int item = contents[i] & 0xFF; if (item >= 0x20 && item <= 0x7F) { 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 b67000e0c8b..c2084a8c77b 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 @@ -968,7 +968,7 @@ public class PluralRulesTest extends TestFmwk { for (Object[] caseDatum : casesData) { String skeleton = (String) caseDatum[0]; int input = (int) caseDatum[1]; - String expectedString = (String) caseDatum[2]; + // String expectedString = (String) caseDatum[2]; String expectPluralRuleKeyword = (String) caseDatum[3]; String actualPluralRuleKeyword = @@ -1243,7 +1243,7 @@ public class PluralRulesTest extends TestFmwk { * @return */ private String showBytes(byte[] contents) { - StringBuilder b = new StringBuilder('['); + StringBuilder b = new StringBuilder("["); for (int i = 0; i < contents.length; ++i) { int item = contents[i] & 0xFF; if (item >= 0x20 && item <= 0x7F) { -- 2.40.0