I just downloaded the Google Collections sources and imported them into a new Eclipse project with JDK 1.6.
They don't compile for a couple of reasons:
- javax.annotation.Nullable can not be found
- javax.annotation.ParametersAreNonnullByDefault can not be found
- Cannot reduce the visibility of the inherited method #createCollection() from AbstractMultimap
- + 11 similar ones
- Name clash: The method forcePut(K, V) of type Ab开发者_运维技巧stractBiMap has the same erasure as forcePut(Object, Object) of type BiMap but does not override it
- + 2 similar ones
I also wonder if unit tests for these collections are available to the public.
Seems like you're missing JSR-305 as dependency. Try adding it to the classpath.
精彩评论