Just think of

    new HashSet() {{ add(x); }};

as a hash set literal, in the same way that

    new Object[] { x };

is an array literal. It's only obscure the first time.

-- O.L.

_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org:8080/mailman/listinfo/antlr-dev

Reply via email to