Skip to content

Merge branch 'awslabs:main' into main #1

Merge branch 'awslabs:main' into main

Merge branch 'awslabs:main' into main #1

GitHub Actions / Qodana Community for JVM completed Mar 18, 2024 in 0s

57 new problems found by Qodana Community for JVM

Qodana Community for JVM

57 new problems were found

Inspection name Severity Problems
Constant values 🔶 Warning 12
Caught exception is immediately rethrown 🔶 Warning 10
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 4
AutoCloseable used without 'try'-with-resources 🔶 Warning 3
Unused assignment 🔶 Warning 3
'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
Synchronization on local variable or method parameter 🔶 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 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 195 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 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 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 202 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 224 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 107 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 27 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 82 in wrapper/src/main/java/software/amazon/jdbc/plugin/AwsSecretsManagerConnectionPlugin.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 `Secret` is exposed outside its defined visibility scope

Check warning on line 28 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

Check warning on line 274 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 243 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 111 in wrapper/src/main/java/software/amazon/jdbc/plugin/efm/HostMonitoringConnectionPlugin.java

See this annotation in the file changed.

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

Constant values

Condition `pluginService == null` is always `false`

Check warning on line 117 in wrapper/src/main/java/software/amazon/jdbc/dialect/AuroraPgDialect.java

See this annotation in the file changed.

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

Constant values

Condition `hasExtensions` is always `true`

Check warning on line 112 in wrapper/src/main/java/software/amazon/jdbc/plugin/efm2/HostMonitoringConnectionPlugin.java

See this annotation in the file changed.

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

Constant values

Condition `properties == null` is always `false`

Check warning on line 114 in wrapper/src/main/java/software/amazon/jdbc/plugin/efm/HostMonitoringConnectionPlugin.java

See this annotation in the file changed.

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

Constant values

Condition `properties == null` is always `false`