carrotsearch/smartsprites — pull request #2 by slandelle (2012-02-23 08:14:17+00:00)
Title: guava 11 compatibility

Hi,

smartsprites 0.2.8 compiles against google-collections, that has been deprecated for a long time in favor of guava.

Until guava 11, I've been excluding the google-collections dependency and pulling guava.
This no longer works as several smartsprites classes, like SpriteImageDirective, point to ImmutableSet.of(E[]). This method was removed in guava 11.

guava 11 now provides all the sufficient methods so that migrating is transparent : ImmutableSet.of(E), ImmutableSet.of(E, E) ... ImmutableSet.of(E, E, E, E, E, E...).

Moving to guava 11 doesn't impact the smartsprites code, just the dependencies and the generated bytecode.

Sincerely,

Stephane Landelle