How do I use a boolean parameter in the Message.Select annotation?

39 views
Skip to first unread message

Zak Linder

unread,
Oct 14, 2011, 2:15:09 PM10/14/11
to google-we...@googlegroups.com
According to the Messages.Select javadoc I can use a boolean-type parameter, but I can't seem to get it to work. For example:

@DefaultMessage("{1} just did something.")
@AlternateMessage({
    "true", "You just did something in another session."
})
String contextInvalidTherapyStopped(@Select boolean me, @Optional String userName);

I've tried using "TRUE" and using Boolean instead of boolean and nothing has worked. I do not want to use an enum if I can avoid it.

Zak Linder

unread,
Oct 14, 2011, 2:39:01 PM10/14/11
to google-we...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages