]> source.dussan.org Git - jgit.git/commit
Added jgit own NonNull annotation type 37/60437/4
authorAndrey Loskutov <loskutov@gmx.de>
Sun, 15 Nov 2015 21:55:58 +0000 (22:55 +0100)
committerAndrey Loskutov <loskutov@gmx.de>
Tue, 17 Nov 2015 17:23:59 +0000 (18:23 +0100)
commitf1405a337a399a91a10497100a80e841b8ef7aea
tree5bf6c02c5bd45e01b9d57dcf1be63f46ceffdb89
parentd45ee995467709f539bf01607854d1afad11e3b7
Added jgit own NonNull annotation type

The annotation is required for example in Repository case (patch
follows), where almost all non-void return methods return Nullable
except few returning NonNull. I definitely do not favor this style, but
it is a nightmare to clients to guess if the null check is needed or
not.

Change-Id: Ib2a778a246c6d84b7c32565f54df2385b59f6498
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
org.eclipse.jgit/src/org/eclipse/jgit/annotations/NonNull.java [new file with mode: 0644]