Skip to content

fix: limitless plugin - add null checks (#1152)

Sign in for the full log view
GitHub Actions / Qodana Community for JVM completed Oct 18, 2024 in 0s

69 new problems found by Qodana Community for JVM

Qodana Community for JVM

69 new problems were found

Inspection name Severity Problems
Constant values 🔶 Warning 15
Caught exception is immediately rethrown 🔶 Warning 11
AutoCloseable used without 'try'-with-resources 🔶 Warning 8
Class is exposed outside of its visibility scope 🔶 Warning 8
String concatenation as argument to 'StringBuilder.append()' call 🔶 Warning 8
Nullability and data flow problems 🔶 Warning 7
Unused assignment 🔶 Warning 4
'Optional' used as field or parameter type 🔶 Warning 2
'throw' inside 'finally' block 🔶 Warning 2
Empty 'try' block 🔶 Warning 1
Infinite loop statement 🔶 Warning 1
Confusing primitive array argument to varargs method 🔶 Warning 1
Constant values ◽️ Notice 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

  1. Register at Qodana Cloud and configure the action
  2. Use GitHub Code Scanning with Qodana
  3. Host Qodana report at GitHub Pages
  4. Inspect and use qodana.sarif.json (see the Qodana SARIF format for details)

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/[email protected]
        with:
          upload-result: true
Contact Qodana team

Contact us at [email protected]

Details

This result was published with Qodana GitHub Action

Annotations

Check warning on line 131 in wrapper/src/main/java/software/amazon/jdbc/hostlistprovider/monitoring/MonitoringRdsHostListProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

AutoCloseable used without 'try'-with-resources

'ClusterTopologyMonitor' used without 'try'-with-resources statement

Check warning on line 69 in examples/AWSDriverExample/src/main/java/software/amazon/TelemetryMetricsOTLPExample.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

AutoCloseable used without 'try'-with-resources

'OpenTelemetrySdk' used without 'try'-with-resources statement

Check warning on line 103 in wrapper/src/main/java/software/amazon/jdbc/plugin/strategy/fastestresponse/HostResponseTimeServiceImpl.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

AutoCloseable used without 'try'-with-resources

'NodeResponseTimeMonitor' used without 'try'-with-resources statement

Check warning on line 140 in wrapper/src/main/java/software/amazon/jdbc/plugin/limitless/LimitlessRouterServiceImpl.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

AutoCloseable used without 'try'-with-resources

'LimitlessRouterMonitor' used without 'try'-with-resources statement

Check warning on line 112 in wrapper/src/main/java/software/amazon/jdbc/hostlistprovider/monitoring/MonitoringRdsHostListProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

AutoCloseable used without 'try'-with-resources

'ClusterTopologyMonitor' used without 'try'-with-resources statement

Check warning on line 144 in wrapper/src/main/java/software/amazon/jdbc/hostlistprovider/monitoring/MonitoringRdsHostListProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

AutoCloseable used without 'try'-with-resources

'ClusterTopologyMonitor' used without 'try'-with-resources statement

Check warning on line 275 in wrapper/src/main/java/software/amazon/jdbc/HikariPooledConnectionProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

AutoCloseable used without 'try'-with-resources

'HikariDataSource' used without 'try'-with-resources statement

Check warning on line 162 in wrapper/src/main/java/software/amazon/jdbc/hostlistprovider/monitoring/MonitoringRdsHostListProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

AutoCloseable used without 'try'-with-resources

'ClusterTopologyMonitor' used without 'try'-with-resources statement

Check warning on line 130 in examples/AWSDriverExample/src/main/java/software/amazon/ReadWriteSplittingMySQLExample.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Caught exception is immediately rethrown

Caught exception `e` is immediately rethrown

Check warning on line 131 in examples/AWSDriverExample/src/main/java/software/amazon/ReadWriteSplittingPostgresExample.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Caught exception is immediately rethrown

Caught exception `e` is immediately rethrown

Check warning on line 104 in examples/AWSDriverExample/src/main/java/software/amazon/ReadWriteSplittingMySQLExample.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Caught exception is immediately rethrown

Caught exception `e` is immediately rethrown

Check warning on line 150 in wrapper/src/main/java/software/amazon/jdbc/plugin/limitless/LimitlessRouterServiceImpl.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Caught exception is immediately rethrown

Caught exception `e` is immediately rethrown

Check warning on line 106 in examples/AWSDriverExample/src/main/java/software/amazon/PgFailoverSample.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Caught exception is immediately rethrown

Caught exception `e` is immediately rethrown

Check warning on line 105 in examples/AWSDriverExample/src/main/java/software/amazon/ReadWriteSplittingPostgresExample.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Caught exception is immediately rethrown

Caught exception `e` is immediately rethrown

Check warning on line 368 in wrapper/src/main/java/software/amazon/jdbc/plugin/AuroraInitialConnectionStrategyPlugin.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Caught exception is immediately rethrown

Caught exception `ex` is immediately rethrown

Check warning on line 78 in examples/AWSDriverExample/src/main/java/software/amazon/PgFailoverSample.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Caught exception is immediately rethrown

Caught exception `e` is immediately rethrown

Check warning on line 145 in examples/AWSDriverExample/src/main/java/software/amazon/ReadWriteSplittingPostgresExample.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Caught exception is immediately rethrown

Caught exception `e` is immediately rethrown

Check warning on line 94 in examples/AWSDriverExample/src/main/java/software/amazon/PgFailoverSample.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Caught exception is immediately rethrown

Caught exception `e` is immediately rethrown

Check warning on line 144 in examples/AWSDriverExample/src/main/java/software/amazon/ReadWriteSplittingMySQLExample.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Caught exception is immediately rethrown

Caught exception `e` is immediately rethrown

Check warning on line 28 in wrapper/src/main/java/software/amazon/jdbc/util/CacheMap.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Class is exposed outside of its visibility scope

Class `CacheItem` is exposed outside its defined visibility scope

Check warning on line 229 in wrapper/src/main/java/software/amazon/jdbc/hostlistprovider/RdsHostListProvider.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Class is exposed outside of its visibility scope

Class `FetchTopologyResult` is exposed outside its defined visibility scope

Check warning on line 249 in wrapper/src/main/java/software/amazon/jdbc/ConnectionPluginManager.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Class is exposed outside of its visibility scope

Class `PluginChainJdbcCallable` is exposed outside its defined visibility scope

Check warning on line 208 in wrapper/src/main/java/software/amazon/jdbc/ConnectionPluginManager.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Class is exposed outside of its visibility scope

Class `PluginPipeline` is exposed outside its defined visibility scope

Check warning on line 280 in wrapper/src/main/java/software/amazon/jdbc/ConnectionPluginManager.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Class is exposed outside of its visibility scope

Class `PluginPipeline` is exposed outside its defined visibility scope

Check warning on line 30 in wrapper/src/main/java/software/amazon/jdbc/util/SlidingExpirationCache.java

See this annotation in the file changed.

@github-actions github-actions / Qodana Community for JVM

Class is exposed outside of its visibility scope

Class `CacheItem` is exposed outside its defined visibility scope