Skip to content

Commit

Permalink
Make TokenType constructor public
Browse files Browse the repository at this point in the history
Closes gh-16086
  • Loading branch information
sjohnr committed Dec 18, 2024
1 parent a7b6c63 commit 6bc6946
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ public static final class TokenType implements Serializable {

private final String value;

private TokenType(String value) {
/**
* Constructs a {@code TokenType} using the provided value.
* @param value the value of the token type
* @since 6.5
*/
public TokenType(String value) {
Assert.hasText(value, "value cannot be empty");
this.value = value;
}
Expand Down

0 comments on commit 6bc6946

Please sign in to comment.