开发者

Google Collections sources don't compile

开发者 https://www.devze.com 2022-12-30 17:10 出处:网络
I just downloaded the Google Collections sources and imported them into a new Eclipse project with JDK 1.6.

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
What am I missing?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消