From be09e698ea89eed40048e7cafe1b21dbf4042117 Mon Sep 17 00:00:00 2001 From: Bernd Busse Date: Thu, 27 Jul 2023 21:07:29 +0200 Subject: [PATCH] classlib: remove hardcoded dependecy to TRoundingMode in NumberFormat --- .../java/org/teavm/classlib/java/text/TNumberFormat.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classlib/src/main/java/org/teavm/classlib/java/text/TNumberFormat.java b/classlib/src/main/java/org/teavm/classlib/java/text/TNumberFormat.java index 8cf918bc4..a7a357c85 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/text/TNumberFormat.java +++ b/classlib/src/main/java/org/teavm/classlib/java/text/TNumberFormat.java @@ -15,9 +15,9 @@ */ package org.teavm.classlib.java.text; +import java.math.RoundingMode; import java.util.Objects; import org.teavm.classlib.impl.unicode.CLDRHelper; -import org.teavm.classlib.java.math.TRoundingMode; import org.teavm.classlib.java.util.TCurrency; import org.teavm.classlib.java.util.TLocale; @@ -30,7 +30,7 @@ public abstract class TNumberFormat extends TFormat { private int minimumIntegerDigits = 1; private int maximumFractionDigits = 3; private int minimumFractionDigits; - private TRoundingMode roundingMode = TRoundingMode.HALF_EVEN; + private RoundingMode roundingMode = RoundingMode.HALF_EVEN; TCurrency currency = TCurrency.getInstance(TLocale.getDefault()); public TNumberFormat() { @@ -238,11 +238,11 @@ public abstract class TNumberFormat extends TFormat { parseIntegerOnly = value; } - public TRoundingMode getRoundingMode() { + public RoundingMode getRoundingMode() { return roundingMode; } - public void setRoundingMode(TRoundingMode roundingMode) { + public void setRoundingMode(RoundingMode roundingMode) { this.roundingMode = roundingMode; }