Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Pearce2015-04-24 17:22:28 +0000
committerShawn Pearce2015-04-24 18:07:22 +0000
commita3476ced1fcebeeb0d9837aac4c2e833732a236b (patch)
treefaa76489c01d7a33fbd5496b915335b5e343465c
parent1553a6ff555d14ff165daf642d9c7a8969dfa530 (diff)
downloadjgit-a3476ced1fcebeeb0d9837aac4c2e833732a236b.tar.gz
jgit-a3476ced1fcebeeb0d9837aac4c2e833732a236b.tar.xz
jgit-a3476ced1fcebeeb0d9837aac4c2e833732a236b.zip
Rename copyThroughCache to shouldCopyThroughCache
Sensible suggestion from Terry Parker as a late comment on commit f2efcdc6f769d59722b17e9274932d585035cfb6. Change-Id: I225775bfb6d3d91ae066ff00f9d80a9c02a422c2
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java2
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java
index f3f75c3fb2..2e170a5d0f 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java
@@ -210,7 +210,7 @@ public final class DfsBlockCache {
statMiss = new AtomicLong();
}
- boolean copyThroughCache(long length) {
+ boolean shouldCopyThroughCache(long length) {
return length <= maxStreamThroughCache;
}
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java
index 88ef0dd044..b51ee2f4de 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java
@@ -470,7 +470,7 @@ public final class DfsPackFile {
throws IOException {
MessageDigest md = initCopyPack(out, validate, ctx);
long p;
- if (cache.copyThroughCache(length))
+ if (cache.shouldCopyThroughCache(length))
p = copyPackThroughCache(out, ctx, md);
else
p = copyPackBypassCache(out, ctx, md);

Back to the top