[ 
https://issues.apache.org/jira/browse/CASSANDRA-14639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason Brown updated CASSANDRA-14639:
------------------------------------
    Summary: Fix a few complaints from eclipse-warnings for 2.2  (was: Fix a 
few complaints from eclipse-warnings)

> Fix a few complaints from eclipse-warnings for 2.2
> --------------------------------------------------
>
>                 Key: CASSANDRA-14639
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14639
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Jason Brown
>            Priority: Minor
>
> These failed on 2.2 
> [circleci|https://circleci.com/gh/jasobrown/cassandra/1375]
> {noformat}
> eclipse-warnings:
>     [mkdir] Created dir: /home/cassandra/cassandra/build/ecj
>      [echo] Running Eclipse Code Analysis.  Output logged to 
> /home/cassandra/cassandra/build/ecj/eclipse_compiler_checks.txt
>      [java] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
>      [java] incorrect classpath: 
> /home/cassandra/cassandra/build/cobertura/classes
>      [java] ----------
>      [java] 1. ERROR in 
> /home/cassandra/cassandra/src/java/org/apache/cassandra/tools/SSTableExport.java
>  (at line 315)
>      [java]   ISSTableScanner scanner = reader.getScanner();
>      [java]                   ^^^^^^^
>      [java] Resource 'scanner' should be managed by try-with-resource
>      [java] ----------
>      [java] ----------
>      [java] 2. ERROR in 
> /home/cassandra/cassandra/src/java/org/apache/cassandra/db/compaction/CompactionManager.java
>  (at line 888)
>      [java]   ISSTableScanner scanner = cleanupStrategy.getScanner(sstable, 
> getRateLimiter());
>      [java]                   ^^^^^^^
>      [java] Resource 'scanner' should be managed by try-with-resource
>      [java] ----------
>      [java] ----------
>      [java] 3. ERROR in 
> /home/cassandra/cassandra/src/java/org/apache/cassandra/db/compaction/LeveledCompactionStrategy.java
>  (at line 257)
>      [java]   scanners.add(new LeveledScanner(intersecting, range));
>      [java]                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java] Potential resource leak: '<unassigned Closeable value>' may not 
> be closed
>      [java] ----------
>      [java] 3 problems (3 errors)
> BUILD FAILED
> /home/cassandra/cassandra/build.xml:1915: Java returned: 255
> {noformat}
> Not failing on 3.0+.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to