Browse Source

ObjectReachabilityCheckers: Make walk member final

It is only assigned on initialization.

Change-Id: I36f68b3f511236e66cc7a4f56ba49252b317276a
Signed-off-by: Ivan Frade <ifrade@google.com>
stable-5.8
Ivan Frade 5 years ago
parent
commit
70ec9a83b8
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/revwalk/BitmappedObjectReachabilityChecker.java
  2. 2
      org.eclipse.jgit/src/org/eclipse/jgit/revwalk/PedestrianObjectReachabilityChecker.java

2
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/BitmappedObjectReachabilityChecker.java

@ -29,7 +29,7 @@ import org.eclipse.jgit.lib.BitmapIndex.BitmapBuilder;
public class BitmappedObjectReachabilityChecker public class BitmappedObjectReachabilityChecker
implements ObjectReachabilityChecker { implements ObjectReachabilityChecker {
private ObjectWalk walk; private final ObjectWalk walk;
/** /**
* New instance of the reachability checker using a existing walk. * New instance of the reachability checker using a existing walk.

2
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/PedestrianObjectReachabilityChecker.java

@ -23,7 +23,7 @@ import org.eclipse.jgit.errors.MissingObjectException;
* walk. * walk.
*/ */
class PedestrianObjectReachabilityChecker implements ObjectReachabilityChecker { class PedestrianObjectReachabilityChecker implements ObjectReachabilityChecker {
private ObjectWalk walk; private final ObjectWalk walk;
/** /**
* New instance of the reachability checker using a existing walk. * New instance of the reachability checker using a existing walk.

Loading…
Cancel
Save