]> source.dussan.org Git - jgit.git/commitdiff
NameConflictTreeWalk: Mark repo param @Nullable 11/94411/1
authorDave Borowitz <dborowitz@google.com>
Tue, 4 Apr 2017 18:53:17 +0000 (14:53 -0400)
committerDave Borowitz <dborowitz@google.com>
Tue, 4 Apr 2017 18:53:17 +0000 (14:53 -0400)
This is passed directly to the super constructor, where it is also
@Nullable. Marking it here saves the reader a jump.

Change-Id: Icc8db2f2dc6aae6e591aa4f09a3c283336a5424c

org.eclipse.jgit/src/org/eclipse/jgit/treewalk/NameConflictTreeWalk.java

index c0b29ef930bb59018e214aee4b638c6dfb3a9149..59cf7989d41fa4661309676c875209b442896b0c 100644 (file)
@@ -45,6 +45,7 @@ package org.eclipse.jgit.treewalk;
 
 import java.io.IOException;
 
+import org.eclipse.jgit.annotations.Nullable;
 import org.eclipse.jgit.dircache.DirCacheBuilder;
 import org.eclipse.jgit.errors.CorruptObjectException;
 import org.eclipse.jgit.lib.FileMode;
@@ -110,7 +111,7 @@ public class NameConflictTreeWalk extends TreeWalk {
         *            the reader the walker will obtain tree data from.
         * @since 4.3
         */
-       public NameConflictTreeWalk(Repository repo, final ObjectReader or) {
+       public NameConflictTreeWalk(@Nullable Repository repo, final ObjectReader or) {
                super(repo, or);
        }