Skip to content

Commit

Permalink
[ELY-2850] Updated DEREncoder#flush to use isEmpty() instead of size()
Browse files Browse the repository at this point in the history
  • Loading branch information
Samith10 committed Oct 4, 2024
1 parent 82d05c2 commit 16703b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ public void writeEncoded(byte[] encoded) {

@Override
public void flush() {
while (states.size() != 0) {
while (!states.isEmpty()) {
EncoderState lastState = states.peekLast();
if (lastState.getTag() == SEQUENCE_TYPE) {
endSequence();
Expand Down

0 comments on commit 16703b4

Please sign in to comment.