Skip to content

Commit

Permalink
Bug in translating character literals
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed Apr 11, 2024
1 parent a4c367f commit b412080
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1207,10 +1207,10 @@ private Expression convertLiteral(JCLiteral literal) {
commonSettings(res, literal);
return res;
}
if (value instanceof Character) {
if (value instanceof Character v) {
CharacterLiteral res = this.ast.newCharacterLiteral();
commonSettings(res, literal);
res.setCharValue(res.charValue());
res.setCharValue(v.charValue());
return res;
}
throw new UnsupportedOperationException("Not supported yet " + literal + "\n of type" + literal.getClass().getName());
Expand Down

0 comments on commit b412080

Please sign in to comment.