Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Fix IntegerValidator, StringValidator
  • Loading branch information
attilakreiner committed Jan 17, 2024
commit 30a7de0b45f841020d81489603b8c0408b89816d
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ private boolean validate(
int index,
int length)
{
return length == 4;
return length - index == 4;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ private boolean validate(
int index,
int length)
{
byte[] payloadBytes = new byte[length];
data.getBytes(0, payloadBytes);
byte[] payloadBytes = new byte[length - index];
data.getBytes(index, payloadBytes);
return predicate.test(payloadBytes);
}

Expand Down