gerrit/gerrit-util-cli
Sasa Zivkov d6ccccf96a Add our own Nullable implementation
When deploying Gerrit in an osgi container we see an issue where the
javax.annotation.Nullable annotation is not available at runtime.
As a consequence Guice injection throws an error if a (Nullable)
parameter is null.

A research on that topic reveals that this is caused by the Split
Package issue in osgi [1]. The javax.annotation.* package is split
as one part of it comes from JRE and another one from the jsr305
packaged in gerrit.war.

Since guice supports usage of any Nullable annotation type whose simple
name is "Nullable" [2], we can use own Nullable annotation type.

[1] http://wiki.osgi.org/wiki/Split_Packages
[2] https://code.google.com/p/google-guice/source/browse/core/src/com/google/inject/internal/Nullability.java

Change-Id: I63b27be6d695e73fd92940e42169d09f751d7274
2013-09-26 15:34:27 +00:00
..
.settings Suppress Eclipse warning "annotation should not be used as a superinterface" 2012-12-02 21:01:28 +09:00
src/main/java/com/google/gerrit/util/cli Add our own Nullable implementation 2013-09-26 15:34:27 +00:00
.gitignore Add Intellij IDEA files to ignore list 2012-05-03 13:17:43 -07:00
BUCK Add our own Nullable implementation 2013-09-26 15:34:27 +00:00