Skip to content

Commit

Permalink
minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lhazlewood committed Aug 9, 2023
1 parent 73f53be commit c32cba5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public Object applyTo(String s) {
@Override
public String applyFrom(Object o) {
Assert.notNull(o, "Value cannot be null.");
Assert.isInstanceOf(String.class, o, "Value must be a string.");
String s = (String) o;
String s = Assert.isInstanceOf(String.class, o, "Value must be a string.");

// https://www.rfc-editor.org/rfc/rfc7515.html#section-4.1.10:
//
Expand Down

0 comments on commit c32cba5

Please sign in to comment.