Skip to content

Commit

Permalink
use primitive types instead of boxed in the case of non-nullable values
Browse files Browse the repository at this point in the history
  • Loading branch information
filip26 committed May 12, 2020
1 parent 6cda0b0 commit e788014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/apicatalog/codec/Base32Id.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public static final Long decodeLong(String encoded) {
throw new IllegalArgumentException("Encoded number length (" + encoded.length() + ") exceeds maximal allowed length (" + MAX_ENCODED_LONG_SIZE + "), input='" + encoded + "'");
}

Long number = 0l;
Long exponent = 1l;
long number = 0l;
long exponent = 1l;

for (int index=encoded.length() - 1; index >= 0; index--) {

Expand Down

0 comments on commit e788014

Please sign in to comment.