aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-12-28 23:29:32 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2024-12-29 01:47:39 +0100
commit873648956f83931c23330d0814224410c3bdd225 (patch)
treee85adaedc05bbd84cf6cac4a38b0d3fa0e2637d9
parent0e70ee5befd80990dda96e8ced17d4d1825e1085 (diff)
downloadjgit-873648956f83931c23330d0814224410c3bdd225.tar.gz
jgit-873648956f83931c23330d0814224410c3bdd225.zip
WindowCache: fix "empty control-flow statement" warning
Change-Id: I61259fc76454b473aee92dc96180219e5f4a4084
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/WindowCache.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/WindowCache.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/WindowCache.java
index fd80faf4ed..15c125c684 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/WindowCache.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/WindowCache.java
@@ -790,7 +790,9 @@ public class WindowCache {
}
numRemovers++;
}
- for (int numRemoved = 0; removeNextBlock(numRemoved); numRemoved++);
+ for (int numRemoved = 0; removeNextBlock(numRemoved); numRemoved++) {
+ // empty
+ }
synchronized (this) {
if (numRemovers > 0) {
numRemovers--;