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:
David Pursehouse 2019-06-02 17:45:32 +09:00 committed by Matthias Sohn
parent d9c569b747
commit 84c315b2a0
1 changed files with 1 additions and 1 deletions

View File

@ -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<>();