PackWriter: Make internal class static
When Error Prone checks are enabled, the "ClassCanBeStatic" warning is triggered: Inner class is non-static but does not reference enclosing class see https://errorprone.info/bugpattern/ClassCanBeStatic Change-Id: I5a0e3bf0cf8c28176d9c98914c1c0dfab9c5736f Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
d9c569b747
commit
84c315b2a0
|
@ -878,7 +878,7 @@ private ObjectWalk getObjectWalk() {
|
|||
* already been visited at this depth or shallower, it is not necessary to
|
||||
* re-visit at this depth.
|
||||
*/
|
||||
private class DepthAwareVisitationPolicy
|
||||
private static class DepthAwareVisitationPolicy
|
||||
implements ObjectWalk.VisitationPolicy {
|
||||
private final Map<ObjectId, Integer> lowestDepthVisited = new HashMap<>();
|
||||
|
||||
|
|
Loading…
Reference in New Issue