Skip to content

Commit

Permalink
write lookup name in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jan 3, 2025
1 parent 5265f78 commit 6f6985e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static String wrapSwitchStatement(StringBuilder switchBody) {
}

@NotNull
static StringBuilder getGetters(StringBuilder switchBody, List<VariableRecord> getterPairs) {
public static StringBuilder getGetters(StringBuilder switchBody, List<VariableRecord> getterPairs) {
HashMap<Integer, AtomicInteger> hashConflicts = getHashConflicts(getterPairs);

StringBuilder getterBody = new StringBuilder();
Expand All @@ -107,6 +107,7 @@ static StringBuilder getGetters(StringBuilder switchBody, List<VariableRecord> g
if (hashConflicts.get(hash).get() == 1) {
switchBody.append(before);
switchBody.append("\t\tcase " + hash + ":\n");
switchBody.append("\t\t\t// " + pair.getUserName() + "\n");
switchBody.append("\t" + returnLine);
switchBody.append(after);
} else {
Expand Down

0 comments on commit 6f6985e

Please sign in to comment.