From a3476ced1fcebeeb0d9837aac4c2e833732a236b Mon Sep 17 00:00:00 2001 From: Shawn Pearce Date: Fri, 24 Apr 2015 10:22:28 -0700 Subject: [PATCH] Rename copyThroughCache to shouldCopyThroughCache Sensible suggestion from Terry Parker as a late comment on commit f2efcdc6f769d59722b17e9274932d585035cfb6. Change-Id: I225775bfb6d3d91ae066ff00f9d80a9c02a422c2 --- .../org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java | 2 +- .../src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java | 2 +- 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 f3f75c3fb..2e170a5d0 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 88ef0dd04..b51ee2f4d 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);