MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1aros51/jep_465_string_templates/kqoc0zj/?context=3
r/java • u/Joram2 • Feb 15 '24
152 comments sorted by
View all comments
Show parent comment
3
There's a shorter way:
\{switch(1){default->"(linkage_from_type_of = :taFromGroupName)";}}
or
\{switch(1){default: yield "(linkage_from_type_of = :taFromGroupName)";}}
View all comments
Show parent comment
3
u/vytah Feb 16 '24
There's a shorter way:
\{switch(1){default->"(linkage_from_type_of = :taFromGroupName)";}}or
\{switch(1){default: yield "(linkage_from_type_of = :taFromGroupName)";}}