Syntax for multiple exlude in @ToString

5,134 views
Skip to first unread message

Kennet

unread,
Aug 6, 2012, 3:56:35 AM8/6/12
to Project Lombok
Hi, whats the syntax for excluding multiple fields in a class?
I have tried
@ToString(callSuper = true, exclude = "var1,var2") and
@ToString(callSuper = true, exclude = "{var1,var2}")

but without success.

Fabrizio Giudici

unread,
Aug 6, 2012, 4:17:52 AM8/6/12
to Project Lombok, Kennet
The syntax is the one for multiple arguments in Java annotations:

@ToString(callSuper = true, exclude = {"var1","var2"})

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
fabrizio...@tidalwave.it
http://tidalwave.it - http://fabriziogiudici.it

Kennet

unread,
Aug 6, 2012, 4:39:20 AM8/6/12
to project...@googlegroups.com, Kennet
I was so close but still wrong.. Thanks a lot!!
Reply all
Reply to author
Forward
0 new messages