From 93c788952ee88bb588cac5de322016388db83b60 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 21 Sep 2016 10:07:34 +0200 Subject: [PATCH] DfsBlockCache: Suppress warnings about unchecked conversion of Ref There are already suppressions for the same warnings in other parts of this class. Change-Id: Ic3b45525c6c8200cba975d14c7650cedb4409a4d Signed-off-by: David Pursehouse --- .../org/eclipse/jgit/internal/storage/dfs/DfsBlockCache.java | 2 ++ 1 file changed, 2 insertions(+) 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 ecd4b23c2..2c8953555 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 @@ -175,6 +175,7 @@ public final class DfsBlockCache { /** Number of bytes currently loaded in the cache. */ private volatile long liveBytes; + @SuppressWarnings("unchecked") private DfsBlockCache(final DfsBlockCacheConfig cfg) { tableSize = tableSize(cfg); if (tableSize < 1) @@ -416,6 +417,7 @@ public final class DfsBlockCache { clockLock.unlock(); } + @SuppressWarnings("unchecked") private void addToClock(Ref ref, int credit) { clockLock.lock(); try {