Browse Source

Rename copyThroughCache to shouldCopyThroughCache

Sensible suggestion from Terry Parker as a late comment on
commit f2efcdc6f769d59722b17e9274932d585035cfb6.

Change-Id: I225775bfb6d3d91ae066ff00f9d80a9c02a422c2
stable-4.1
Shawn Pearce 10 years ago
parent
commit
a3476ced1f
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java
  2. 2
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java

2
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;
}

2
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);

Loading…
Cancel
Save