Skip to content

Commit

Permalink
change class to record
Browse files Browse the repository at this point in the history
  • Loading branch information
stackoverflow committed Feb 5, 2025
1 parent 4bdc1ee commit 8b440d4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pkl-core/src/main/java/org/pkl/core/parser/Lexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -751,15 +751,7 @@ private static Token getKeywordOrIdent(String text) {

private static final KeywordEntry[] KEYWORDS = new KeywordEntry[43];

private static class KeywordEntry implements Comparable<String> {
protected final String name;
protected final Token token;

public KeywordEntry(String name, Token token) {
this.name = name;
this.token = token;
}

private record KeywordEntry(String name, Token token) implements Comparable<String> {
@Override
public int compareTo(String o) {
return name.compareTo(o);
Expand Down

0 comments on commit 8b440d4

Please sign in to comment.