]> source.dussan.org Git - jgit.git/commit
Avoid using @Nullable to annotate arrays 14/130714/3
authorJonathan Nieder <jrn@google.com>
Tue, 9 Oct 2018 22:29:00 +0000 (15:29 -0700)
committerJonathan Nieder <jrn@google.com>
Tue, 9 Oct 2018 22:52:54 +0000 (15:52 -0700)
commitc58362c1748abceacf35fc6b3d0d53125f7cdf71
tree912fcd81d9aae134fd24f920bc7d77d0937c815f
parent81b7f0e83595af162fe9950c6f2867b14901ec60
Avoid using @Nullable to annotate arrays

As described in the javadoc for org.eclipse.jgit.annotations.Nullable:

  Warning: Please do not use this annotation on arrays. Different
  annotation processors treat `@Nullable Object[]` differently: some
  treat it as an array of nullable objects, for consistency with
  versions of `Nullable` defined with `@Target TYPE_USE`, while others
  treat it as a nullable array of objects. JGit therefore avoids using
  this annotation on arrays altogether.

  See the checker-framework manual[1] for details.

  [1] http://types.cs.washington.edu/checker-framework/current/checker-framework-manual.html#faq-array-syntax-meaning

Change-Id: I14ffcf80adbb8145d797998de2f2fa6ab84c3ae3
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevCommit.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileBasedConfig.java