Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ public BooleanToggleModification createCopy() {

@Override
protected Boolean modifyImplementationHook(Boolean input) {
if (input == null) {
input = Boolean.FALSE;
}
return !input;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,10 @@

@Override
protected byte[] modifyImplementationHook(byte[] input) {
if (input == null) {
input = new byte[0];
}

return ArrayConverter.concatenate(input, bytesToAppend);
}

public byte[] getBytesToAppend() {

Check warning on line 47 in src/main/java/de/rub/nds/modifiablevariable/bytearray/ByteArrayAppendValueModification.java

View check run for this annotation

Jenkins CI - TLS-Attacker / JavaDoc

-

NORMAL: no comment
return bytesToAppend;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ public ByteArrayDeleteModification createCopy() {

@Override
protected byte[] modifyImplementationHook(byte[] input) {
if (input == null) {
input = new byte[0];
}
if (input.length == 0) {
return input;
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public IntegerAddModification createCopy() {

@Override
protected Integer modifyImplementationHook(Integer input) {
return input == null ? summand : input + summand;
return input + summand;
}

public Integer getSummand() {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public IntegerMultiplyModification createCopy() {

@Override
protected Integer modifyImplementationHook(Integer input) {
return input == null ? 0 : input * factor;
return input * factor;
}

public Integer getFactor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public IntegerShiftLeftModification createCopy() {

@Override
protected Integer modifyImplementationHook(Integer input) {
return input == null ? 0 : input << shift % MAX_SHIFT_MODIFIER;
return input << shift % MAX_SHIFT_MODIFIER;
}

public int getShift() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public IntegerShiftRightModification createCopy() {

@Override
protected Integer modifyImplementationHook(Integer input) {
return input == null ? 0 : input >> shift % MAX_SHIFT_MODIFIER;
return input >> shift % MAX_SHIFT_MODIFIER;
}

public int getShift() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public IntegerSubtractModification createCopy() {

@Override
protected Integer modifyImplementationHook(Integer input) {
return input == null ? -subtrahend : input - subtrahend;
return input - subtrahend;
}

public Integer getSubtrahend() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ public IntegerSwapEndianModification createCopy() {

@Override
protected Integer modifyImplementationHook(Integer input) {
if (input == null) {
return null;
}
return Integer.reverseBytes(input);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public IntegerXorModification createCopy() {

@Override
protected Integer modifyImplementationHook(Integer input) {
return input == null ? xor : input ^ xor;
return input ^ xor;
}

public Integer getXor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public LongAddModification createCopy() {

@Override
protected Long modifyImplementationHook(Long input) {
return input == null ? summand : input + summand;
return input + summand;
}

public Long getSummand() {
Expand Down
Loading