mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 01:40:26 +01:00
Message, TransactionInput, TransactionOutput, TransactionOutPoint: remove deprecated methods bitcoinSerialize(), unsafeBitcoinSerialize()
This commit is contained in:
parent
615232e79b
commit
dc7d64f7cb
@ -48,18 +48,4 @@ public interface Message {
|
||||
* @return serialized data in Bitcoin protocol format
|
||||
*/
|
||||
byte[] serialize();
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #serialize()}
|
||||
*/
|
||||
@Deprecated
|
||||
default byte[] bitcoinSerialize() {
|
||||
return serialize();
|
||||
}
|
||||
|
||||
/** @deprecated use {@link #serialize()} */
|
||||
@Deprecated
|
||||
default byte[] unsafeBitcoinSerialize() {
|
||||
return serialize();
|
||||
}
|
||||
}
|
||||
|
@ -185,12 +185,6 @@ public class TransactionInput {
|
||||
return write(ByteBuffer.allocate(messageSize())).array();
|
||||
}
|
||||
|
||||
/** @deprecated use {@link #serialize()} */
|
||||
@Deprecated
|
||||
public byte[] bitcoinSerialize() {
|
||||
return serialize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the size of the serialized message. Note that if the message was deserialized from a payload, this
|
||||
* size can differ from the size of the original payload.
|
||||
|
@ -117,12 +117,6 @@ public class TransactionOutPoint {
|
||||
return write(ByteBuffer.allocate(BYTES)).array();
|
||||
}
|
||||
|
||||
/** @deprecated use {@link #serialize()} */
|
||||
@Deprecated
|
||||
public byte[] bitcoinSerialize() {
|
||||
return serialize();
|
||||
}
|
||||
|
||||
/** @deprecated use {@link #BYTES} */
|
||||
@Deprecated
|
||||
public int getMessageSize() {
|
||||
|
@ -148,12 +148,6 @@ public class TransactionOutput {
|
||||
return write(ByteBuffer.allocate(messageSize())).array();
|
||||
}
|
||||
|
||||
/** @deprecated use {@link #serialize()} */
|
||||
@Deprecated
|
||||
public byte[] bitcoinSerialize() {
|
||||
return serialize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the size of the serialized message. Note that if the message was deserialized from a payload, this
|
||||
* size can differ from the size of the original payload.
|
||||
|
@ -22,8 +22,6 @@ public class MessageTest {
|
||||
@Test
|
||||
public void deprecatedMembers() {
|
||||
Message message = new UnknownMessage("dummy");
|
||||
message.bitcoinSerialize();
|
||||
message.unsafeBitcoinSerialize();
|
||||
message.getMessageSize();
|
||||
}
|
||||
}
|
||||
|
@ -60,6 +60,5 @@ public class TransactionOutPointTest {
|
||||
outpoint.getHash();
|
||||
outpoint.getMessageSize();
|
||||
outpoint.getIndex();
|
||||
outpoint.bitcoinSerialize();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user