Deprecate the promotion functions.

This commit is contained in:
Danila Fedorin 2017-08-08 15:29:19 -07:00
parent 7dcc80fcae
commit ff8701a7bf
1 changed files with 2 additions and 0 deletions

View File

@ -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<? extends NumberInterface> 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<? extends NumberInterface> toClass) {
checkInterrupted();
return promoteToInternal(toClass);