From ff8701a7bf8f87ee3d00fce700b957f201a66f23 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Tue, 8 Aug 2017 15:29:19 -0700 Subject: [PATCH] Deprecate the promotion functions. --- src/main/java/org/nwapw/abacus/number/NumberInterface.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/nwapw/abacus/number/NumberInterface.java b/src/main/java/org/nwapw/abacus/number/NumberInterface.java index 34edfcc..c534225 100755 --- a/src/main/java/org/nwapw/abacus/number/NumberInterface.java +++ b/src/main/java/org/nwapw/abacus/number/NumberInterface.java @@ -240,6 +240,7 @@ public abstract class NumberInterface { * @param toClass the class to promote to. * @return the resulting new instance. */ + @Deprecated protected abstract NumberInterface promoteToInternal(Class toClass); /** @@ -250,6 +251,7 @@ public abstract class NumberInterface { * @param toClass the class to promote to. * @return the resulting new instance. */ + @Deprecated public final NumberInterface promoteTo(Class toClass) { checkInterrupted(); return promoteToInternal(toClass);