Skip to content

Commit

Permalink
Merge pull request #2214 from Samith10/ELY-2850
Browse files Browse the repository at this point in the history
[ELY-2850] Update DEREncoder#flush to use isEmpty() instead of size()
  • Loading branch information
fjuma authored Oct 4, 2024
2 parents 82d05c2 + 16703b4 commit bb6f7eb
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 bb6f7eb

Please sign in to comment.