Double brace initialization in Java is a great way to work around crappy APIs that require loads of calls to setters to initialize initial object state.
I needed to create an ATOM feed, and found the ROME jar. This seemed to meet my needs, but I didn't like the example code at all.
This from the ROME Wiki
This doesn't feel good at all. Lets ignore all the *Impl*s, and instead take a look at all the setters for setting initial object state.
This code can be made much more readable, and much more succinct by using double-brace initialization
Notice that the object initialization now happens at the time that the object is created, and that you don't need to create temporary variables all over the place. It is also possible to nest this type of initialization, as shown in the description field.