Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@oehme
Created November 28, 2014 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oehme/297bd5e2ad74f8ddbbe0 to your computer and use it in GitHub Desktop.
Save oehme/297bd5e2ad74f8ddbbe0 to your computer and use it in GitHub Desktop.
Usage of @message annotation
@Messages class MyMessages {}
class Test {
def static void main(String[] args) {
val messages = new MyMessages(Locale.GERMAN)
println(messages.hello("Stefan", new Date))
print(messages.trains(3))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment