From 70ec9a83b8ea1a059f0b627adc661885f6c83d3b Mon Sep 17 00:00:00 2001 From: Ivan Frade Date: Thu, 30 Apr 2020 10:21:42 -0700 Subject: [PATCH] ObjectReachabilityCheckers: Make walk member final It is only assigned on initialization. Change-Id: I36f68b3f511236e66cc7a4f56ba49252b317276a Signed-off-by: Ivan Frade --- .../jgit/revwalk/BitmappedObjectReachabilityChecker.java | 2 +- .../jgit/revwalk/PedestrianObjectReachabilityChecker.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/BitmappedObjectReachabilityChecker.java b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/BitmappedObjectReachabilityChecker.java index 252811dde..98c22685c 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/BitmappedObjectReachabilityChecker.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/BitmappedObjectReachabilityChecker.java @@ -29,7 +29,7 @@ import org.eclipse.jgit.lib.BitmapIndex.BitmapBuilder; public class BitmappedObjectReachabilityChecker implements ObjectReachabilityChecker { - private ObjectWalk walk; + private final ObjectWalk walk; /** * New instance of the reachability checker using a existing walk. diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/PedestrianObjectReachabilityChecker.java b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/PedestrianObjectReachabilityChecker.java index 55c5156db..df5d68a66 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/PedestrianObjectReachabilityChecker.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/PedestrianObjectReachabilityChecker.java @@ -23,7 +23,7 @@ import org.eclipse.jgit.errors.MissingObjectException; * walk. */ class PedestrianObjectReachabilityChecker implements ObjectReachabilityChecker { - private ObjectWalk walk; + private final ObjectWalk walk; /** * New instance of the reachability checker using a existing walk.