summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2019-06-02 17:45:32 +0900
committerMatthias Sohn <matthias.sohn@sap.com>2019-06-06 17:15:10 +0200
commit84c315b2a09b70904259628bfeb8dd002f954f77 (patch)
tree4f74418ea9f5f3941d682be5b8ee83ca1c865a0e
parentd9c569b74725b4ffe9fa085ff1542b619cbcf4ce (diff)
downloadjgit-84c315b2a09b70904259628bfeb8dd002f954f77.tar.gz
jgit-84c315b2a09b70904259628bfeb8dd002f954f77.zip
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>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java
index 2f7e1a656a..714e8308f4 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java
@@ -878,7 +878,7 @@ public class PackWriter implements AutoCloseable {
* 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<>();