Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jorabin committed Aug 25, 2023
1 parent 1bce2e1 commit 01dc088
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public class Base64ToByteConverter extends StdConverter<String, byte[]> {

@Override
public byte[] convert(String value) {
byte[] decode = Base64.getDecoder().decode(value);
return decode;
return Base64.getDecoder().decode(value);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class Base64ToUUIDConverter extends StdConverter<String, UUID> {

@Override
public UUID convert(String value) {
if(value == null || value.equals("")) {
if(value == null || value.isEmpty()) {
return UUID.randomUUID();
}
return Helpers.uuidFromBase64(value);
Expand Down

0 comments on commit 01dc088

Please sign in to comment.