Google collection sources do not compile

I just downloaded Google Collections sources and imported them into a new Eclipse project with JDK 1.6.

They do not compile for several reasons:

  • javax.annotation.Nullable could not be found
  • javax.annotation.ParametersAreNonnullByDefault not found.
  • Unable to reduce the visibility of the inherited #createCollection () method from AbstractMultimap
  • + 11 similar
  • Clash name: forcePut (K, V) method of type AbstractBiMap has the same erasure as forcePut (Object, Object) of type BiMap but does not cancel it
  • + 2 similar
What am I missing?

I also wonder if unit tests are available for these collections to the public.

+3
source share
1 answer

, JSR-305 . .

+2

Source: https://habr.com/ru/post/1745657/


All Articles