Skip to content

Commit fdc422c

Browse files
ninja-fix – Fix (again) eclipse-warnings error for CASSANDRA-19564
1 parent bfcba9c commit fdc422c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/org/apache/cassandra/index/SecondaryIndexManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ public void indexPartition(DecoratedKey key, Set<Index> indexes, int pageSize)
898898
* @param pageSize the number of {@link Unfiltered} objects to process in a single page
899899
* @param columns the columns indexed by at least one of the supplied indexes
900900
*/
901+
@SuppressWarnings("resource") // for `UnfilteredRowIterator partition` as it is closed later in finally block
901902
public void indexPartition(DecoratedKey key, Set<Index> indexes, int pageSize, RegularAndStaticColumns columns)
902903
{
903904
if (logger.isTraceEnabled())
@@ -919,7 +920,6 @@ public void indexPartition(DecoratedKey key, Set<Index> indexes, int pageSize, R
919920
SinglePartitionPager pager = new SinglePartitionPager(cmd, null, ProtocolVersion.CURRENT);
920921
while (!pager.isExhausted())
921922
{
922-
@SuppressWarnings("resource")
923923
UnfilteredRowIterator partition;
924924
try (ReadExecutionController controller = cmd.executionController();
925925
UnfilteredPartitionIterator page = pager.fetchPageUnfiltered(baseCfs.metadata(), pageSize, controller))

0 commit comments

Comments
 (0)