diff --git a/icu4c/source/i18n/units_complexconverter.h b/icu4c/source/i18n/units_complexconverter.h index 21f3d9b49b9..5c669b45ddd 100644 --- a/icu4c/source/i18n/units_complexconverter.h +++ b/icu4c/source/i18n/units_complexconverter.h @@ -86,7 +86,7 @@ class U_I18N_API ComplexUnitsConverter : public UMemory { * * @param inputUnit represents the source unit. (should be single or compound unit). * @param outputUnits represents the output unit. could be any type. (single, compound or mixed). - * @param ratesInfo + * @param ratesInfo a ConversionRates instance containing the unit conversion rates. * @param status */ ComplexUnitsConverter(const MeasureUnitImpl &inputUnit, const MeasureUnitImpl &outputUnits, diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/number/UnitConversionHandler.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/number/UnitConversionHandler.java index 84a77ad865f..2803b5992dc 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/number/UnitConversionHandler.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/number/UnitConversionHandler.java @@ -2,12 +2,9 @@ // License & terms of use: http://www.unicode.org/copyright.html package com.ibm.icu.impl.number; -import java.util.List; - import com.ibm.icu.impl.units.ComplexUnitsConverter; import com.ibm.icu.impl.units.ConversionRates; import com.ibm.icu.impl.units.MeasureUnitImpl; -import com.ibm.icu.util.Measure; import com.ibm.icu.util.MeasureUnit; /** diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/units/ComplexUnitsConverter.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/units/ComplexUnitsConverter.java index 8a2b2f27f75..853a63ca8f4 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/units/ComplexUnitsConverter.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/units/ComplexUnitsConverter.java @@ -86,6 +86,7 @@ public class ComplexUnitsConverter { * @param outputUnits * represents the output unit. could be any type. (single, compound or mixed). * @param conversionRates + * a ConversionRates instance containing the unit conversion rates. */ public ComplexUnitsConverter(MeasureUnitImpl inputUnit, MeasureUnitImpl outputUnits, ConversionRates conversionRates) { diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/units/UnitsRouter.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/units/UnitsRouter.java index cfb6fa0bca9..0c38fcb0d0d 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/units/UnitsRouter.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/units/UnitsRouter.java @@ -9,7 +9,6 @@ import java.util.List; import com.ibm.icu.impl.IllegalIcuArgumentException; import com.ibm.icu.impl.number.MicroProps; import com.ibm.icu.number.Precision; -import com.ibm.icu.util.Measure; import com.ibm.icu.util.MeasureUnit; /** diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/UnitsTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/UnitsTest.java index 30d82edff4c..646856669e9 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/UnitsTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/UnitsTest.java @@ -64,7 +64,7 @@ public class UnitsTest { for (Measure measure : measures) { double accuracy = 0.0; if (i == expected.length - 1) { - accuracy = accuracy; + accuracy = this.accuracy; } assertTrue("input " + value + ", output measure " + i + ": expected " + expected[i] + ", expected unit " + @@ -572,7 +572,6 @@ public class UnitsTest { /** * Test Case Data */ - @SuppressWarnings("unused") String category; String usage; String region; @@ -622,6 +621,7 @@ public class UnitsTest { } } + @Override public String toString() { ArrayList outputUnits = new ArrayList<>(); for (Pair unit : outputUnitInOrder) {