You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by db...@apache.org on 2016/06/27 00:23:21 UTC
cassandra git commit: move 'resource' warning suppression to where
it's needed
Repository: cassandra
Updated Branches:
refs/heads/trunk 79a2875a7 -> 5bc2f0130
move 'resource' warning suppression to where it's needed
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/5bc2f013
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/5bc2f013
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/5bc2f013
Branch: refs/heads/trunk
Commit: 5bc2f0130986b98beca40e4e18a27d2803248725
Parents: 79a2875
Author: Dave Brosius <db...@mebigfatguy.com>
Authored: Sun Jun 26 20:22:35 2016 -0400
Committer: Dave Brosius <db...@mebigfatguy.com>
Committed: Sun Jun 26 20:22:35 2016 -0400
----------------------------------------------------------------------
src/java/org/apache/cassandra/io/sstable/IndexSummaryBuilder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/5bc2f013/src/java/org/apache/cassandra/io/sstable/IndexSummaryBuilder.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/io/sstable/IndexSummaryBuilder.java b/src/java/org/apache/cassandra/io/sstable/IndexSummaryBuilder.java
index 6110afe..1f4fdc2 100644
--- a/src/java/org/apache/cassandra/io/sstable/IndexSummaryBuilder.java
+++ b/src/java/org/apache/cassandra/io/sstable/IndexSummaryBuilder.java
@@ -85,6 +85,7 @@ public class IndexSummaryBuilder implements AutoCloseable
}
}
+ @SuppressWarnings("resource")
public IndexSummaryBuilder(long expectedKeys, int minIndexInterval, int samplingLevel)
{
this.samplingLevel = samplingLevel;
@@ -281,7 +282,6 @@ public class IndexSummaryBuilder implements AutoCloseable
* @param partitioner the partitioner used for the index summary
* @return a new IndexSummary
*/
- @SuppressWarnings("resource")
public static IndexSummary downsample(IndexSummary existing, int newSamplingLevel, int minIndexInterval, IPartitioner partitioner)
{
// To downsample the old index summary, we'll go through (potentially) several rounds of downsampling.