Atom Feed SITE FEED   ADD TO GOOGLE READER

Java Minutiae - Array class literals

Guice loves class literals:
  bind(Foo.class)
.toProvider(FooProvider.class);


Today I found out that there's a simple syntax for declaring a literal array. Just add an extra pair of square brackets:
  bind(Foo[].class)
.toProvider(FooArrayProvider.class);