You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2016/07/22 02:58:57 UTC
[03/16] accumulo git commit: ACCUMULO-4385 Fix type safety warning
ACCUMULO-4385 Fix type safety warning
Suppress unavoidable type safety warning about overriding a generic
method.
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/775f67cc
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/775f67cc
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/775f67cc
Branch: refs/heads/1.8
Commit: 775f67cc50ad51c61ae044ab2764d28541ea91dc
Parents: a374616
Author: Christopher Tubbs <ct...@apache.org>
Authored: Thu Jul 21 21:51:05 2016 -0400
Committer: Christopher Tubbs <ct...@apache.org>
Committed: Thu Jul 21 21:51:05 2016 -0400
----------------------------------------------------------------------
.../accumulo/core/file/blockfile/impl/CachableBlockFile.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/775f67cc/core/src/main/java/org/apache/accumulo/core/file/blockfile/impl/CachableBlockFile.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/file/blockfile/impl/CachableBlockFile.java b/core/src/main/java/org/apache/accumulo/core/file/blockfile/impl/CachableBlockFile.java
index 7496202..3b12d07 100644
--- a/core/src/main/java/org/apache/accumulo/core/file/blockfile/impl/CachableBlockFile.java
+++ b/core/src/main/java/org/apache/accumulo/core/file/blockfile/impl/CachableBlockFile.java
@@ -458,10 +458,10 @@ public class CachableBlockFile {
}
@Override
+ @SuppressWarnings("unchecked")
public <T> T getIndex(Class<T> clazz) {
T bi = null;
synchronized (cb) {
- @SuppressWarnings("unchecked")
SoftReference<T> softRef = (SoftReference<T>) cb.getIndex();
if (softRef != null)
bi = softRef.get();