Script: Add links to new methods replacing deprecated methods.

This commit is contained in:
Oscar Guindzberg 2019-04-22 18:56:40 -03:00 committed by Andreas Schildbach
parent 84a8446a2f
commit 56358f8ab5

View file

@ -235,11 +235,13 @@ public class Script {
} }
} }
/** @deprecated use {@link ScriptPattern#isP2PK(Script)} */
@Deprecated @Deprecated
public boolean isSentToRawPubKey() { public boolean isSentToRawPubKey() {
return ScriptPattern.isP2PK(this); return ScriptPattern.isP2PK(this);
} }
/** @deprecated use {@link ScriptPattern#isP2PKH(Script)} */
@Deprecated @Deprecated
public boolean isSentToAddress() { public boolean isSentToAddress() {
return ScriptPattern.isP2PKH(this); return ScriptPattern.isP2PKH(this);
@ -631,16 +633,19 @@ public class Script {
} }
} }
/** @deprecated use {@link ScriptPattern#isP2SH(Script)} */
@Deprecated @Deprecated
public boolean isPayToScriptHash() { public boolean isPayToScriptHash() {
return ScriptPattern.isP2SH(this); return ScriptPattern.isP2SH(this);
} }
/** @deprecated use {@link ScriptPattern#isSentToMultisig(Script)} */
@Deprecated @Deprecated
public boolean isSentToMultiSig() { public boolean isSentToMultiSig() {
return ScriptPattern.isSentToMultisig(this); return ScriptPattern.isSentToMultisig(this);
} }
/** @deprecated use {@link ScriptPattern#isSentToCltvPaymentChannel(Script)} */
@Deprecated @Deprecated
public boolean isSentToCLTVPaymentChannel() { public boolean isSentToCLTVPaymentChannel() {
return ScriptPattern.isSentToCltvPaymentChannel(this); return ScriptPattern.isSentToCltvPaymentChannel(this);
@ -755,6 +760,7 @@ public class Script {
return Utils.decodeMPI(Utils.reverseBytes(chunk), false); return Utils.decodeMPI(Utils.reverseBytes(chunk), false);
} }
/** @deprecated use {@link ScriptPattern#isOpReturn(Script)} */
@Deprecated @Deprecated
public boolean isOpReturn() { public boolean isOpReturn() {
return ScriptPattern.isOpReturn(this); return ScriptPattern.isOpReturn(this);