cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marc...@apache.org
Subject cassandra git commit: Fix eclipse warnings after CASSANDRA-9143
Date Tue, 07 Feb 2017 18:32:05 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 0409abc26 -> bd14400a9


Fix eclipse warnings after CASSANDRA-9143

Patch by Blake Eggleston; reviewed by marcuse for CASSANDRA-13190


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/bd14400a
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/bd14400a
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/bd14400a

Branch: refs/heads/trunk
Commit: bd14400a95c94b43f2a992d2263d81ae994721f2
Parents: 0409abc
Author: Blake Eggleston <bdeggleston@gmail.com>
Authored: Tue Feb 7 10:25:29 2017 -0800
Committer: Marcus Eriksson <marcuse@apache.org>
Committed: Tue Feb 7 10:31:29 2017 -0800

----------------------------------------------------------------------
 .../org/apache/cassandra/db/compaction/PendingRepairManager.java    | 1 +
 .../apache/cassandra/repair/consistent/PendingAntiCompaction.java   | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/bd14400a/src/java/org/apache/cassandra/db/compaction/PendingRepairManager.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/compaction/PendingRepairManager.java b/src/java/org/apache/cassandra/db/compaction/PendingRepairManager.java
index a270ead..27e8e9c 100644
--- a/src/java/org/apache/cassandra/db/compaction/PendingRepairManager.java
+++ b/src/java/org/apache/cassandra/db/compaction/PendingRepairManager.java
@@ -228,6 +228,7 @@ class PendingRepairManager
         return tasks;
     }
 
+    @SuppressWarnings("resource")
     private RepairFinishedCompactionTask getRepairFinishedCompactionTask(UUID sessionID)
     {
         Set<SSTableReader> sstables = get(sessionID).getSSTables();

http://git-wip-us.apache.org/repos/asf/cassandra/blob/bd14400a/src/java/org/apache/cassandra/repair/consistent/PendingAntiCompaction.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/repair/consistent/PendingAntiCompaction.java b/src/java/org/apache/cassandra/repair/consistent/PendingAntiCompaction.java
index 5203c41..dd71537 100644
--- a/src/java/org/apache/cassandra/repair/consistent/PendingAntiCompaction.java
+++ b/src/java/org/apache/cassandra/repair/consistent/PendingAntiCompaction.java
@@ -92,6 +92,7 @@ public class PendingAntiCompaction
             return Iterables.filter(cfs.getLiveSSTables(), s -> !s.isRepaired() &&
!s.isPendingRepair() && s.intersects(ranges));
         }
 
+        @SuppressWarnings("resource")
         private AcquireResult acquireTuple()
         {
             List<SSTableReader> sstables = Lists.newArrayList(getSSTables());


Mime
View raw message