accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [01/16] accumulo git commit: ACCUMULO-4385 Fix type safety warning
Date Fri, 22 Jul 2016 02:58:55 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.6 a37461648 -> dcc5dffc8
  refs/heads/1.7 710964086 -> 982286079
  refs/heads/1.8 227bfe886 -> c587a6f56
  refs/heads/master faa92c502 -> 2f8c8e7a4


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.6
Commit: 775f67cc50ad51c61ae044ab2764d28541ea91dc
Parents: a374616
Author: Christopher Tubbs <ctubbsii@apache.org>
Authored: Thu Jul 21 21:51:05 2016 -0400
Committer: Christopher Tubbs <ctubbsii@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();


Mime
View raw message