Skip to content

Commit

Permalink
ScriptChunk: Add missing @nullable annotations to constructors.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewleon authored and Andreas Schildbach committed Jul 16, 2019
1 parent 3e0a65f commit cb6d36f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/bitcoinj/script/ScriptChunk.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ public class ScriptChunk {
public final byte[] data;
private int startLocationInProgram;

public ScriptChunk(int opcode, byte[] data) {
public ScriptChunk(int opcode, @Nullable byte[] data) {
this(opcode, data, -1);
}

public ScriptChunk(int opcode, byte[] data, int startLocationInProgram) {
public ScriptChunk(int opcode, @Nullable byte[] data, int startLocationInProgram) {
this.opcode = opcode;
this.data = data;
this.startLocationInProgram = startLocationInProgram;
Expand Down

0 comments on commit cb6d36f

Please sign in to comment.