Qodana #269
242 new problems found by Qodana Community for JVM
Qodana Community for JVM
242 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Unused import |
🔶 Warning | 33 |
Field can be local |
🔶 Warning | 23 |
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 |
Default annotation parameter value |
🔶 Warning | 7 |
Optional call chain can be simplified |
🔶 Warning | 7 |
'size() == 0' can be replaced with 'isEmpty()' |
🔶 Warning | 6 |
Nullability and data flow problems |
🔶 Warning | 4 |
Deprecated API usage |
🔶 Warning | 4 |
Non functional style 'Optional.isPresent()' usage |
🔶 Warning | 4 |
Stream API call chain can be simplified |
🔶 Warning | 4 |
'String.equals()' can be replaced with 'String.isEmpty()' |
🔶 Warning | 4 |
AutoCloseable used without 'try'-with-resources |
🔶 Warning | 3 |
Unnecessary modifier |
🔶 Warning | 3 |
Unused assignment |
🔶 Warning | 3 |
Standard 'Charset' object can be used |
🔶 Warning | 2 |
Dangling Javadoc comment |
🔶 Warning | 2 |
Empty class initializer |
🔶 Warning | 2 |
Field may be 'final' |
🔶 Warning | 2 |
Lombok @Getter may be used |
🔶 Warning | 2 |
Lombok @Setter may be used |
🔶 Warning | 2 |
@NotNull/@Nullable problems |
🔶 Warning | 2 |
'Optional' used as field or parameter type |
🔶 Warning | 2 |
'throw' inside 'finally' block |
🔶 Warning | 2 |
Empty 'try' block |
🔶 Warning | 1 |
Subsequent steps can be fused into Stream API chain |
🔶 Warning | 1 |
Infinite loop statement |
🔶 Warning | 1 |
Confusing primitive array argument to varargs method |
🔶 Warning | 1 |
Method is identical to its super method |
🔶 Warning | 1 |
'StringBuilder' can be replaced with 'String' |
🔶 Warning | 1 |
Synchronization on local variable or method parameter |
🔶 Warning | 1 |
Call to 'printStackTrace()' |
🔶 Warning | 1 |
Redundant 'if' statement |
🔶 Warning | 1 |
Unchecked warning |
🔶 Warning | 1 |
Redundant local variable |
🔶 Warning | 1 |
Unnecessary 'return' statement |
🔶 Warning | 1 |
@NotNull/@Nullable problems |
◽️ Notice | 59 |
Commented out code |
◽️ Notice | 5 |
Method can be extracted |
◽️ Notice | 3 |
Constant values |
◽️ Notice | 1 |
Regular expression can be simplified |
◽️ 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:
- Register at Qodana Cloud and configure the action
- Use GitHub Code Scanning with Qodana
- Host Qodana report at GitHub Pages
- 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]
- Or via our issue tracker: https://jb.gg/qodana-issue
- Or share your feedback: https://jb.gg/qodana-discussions
Details
This result was published with Qodana GitHub Action
Annotations
github-actions / Qodana Community for JVM
AutoCloseable used without 'try'-with-resources
'OpenTelemetrySdk' used without 'try'-with-resources statement
github-actions / Qodana Community for JVM
AutoCloseable used without 'try'-with-resources
'NodeResponseTimeMonitor' used without 'try'-with-resources statement
github-actions / Qodana Community for JVM
AutoCloseable used without 'try'-with-resources
'HikariDataSource' used without 'try'-with-resources statement
github-actions / Qodana Community for JVM
Caught exception is immediately rethrown
Caught exception `e` is immediately rethrown
github-actions / Qodana Community for JVM
Caught exception is immediately rethrown
Caught exception `e` is immediately rethrown
github-actions / Qodana Community for JVM
Caught exception is immediately rethrown
Caught exception `e` is immediately rethrown
github-actions / Qodana Community for JVM
Caught exception is immediately rethrown
Caught exception `e` is immediately rethrown
github-actions / Qodana Community for JVM
Caught exception is immediately rethrown
Caught exception `e` is immediately rethrown
github-actions / Qodana Community for JVM
Caught exception is immediately rethrown
Caught exception `ex` is immediately rethrown
github-actions / Qodana Community for JVM
Caught exception is immediately rethrown
Caught exception `e` is immediately rethrown
github-actions / Qodana Community for JVM
Caught exception is immediately rethrown
Caught exception `e` is immediately rethrown
github-actions / Qodana Community for JVM
Caught exception is immediately rethrown
Caught exception `e` is immediately rethrown
github-actions / Qodana Community for JVM
Caught exception is immediately rethrown
Caught exception `e` is immediately rethrown
github-actions / Qodana Community for JVM
Standard 'Charset' object can be used
StandardCharsets.UTF_8 can be used instead
Check warning on line 46 in wrapper/src/main/java/software/amazon/jdbc/util/StringUtils.java
github-actions / Qodana Community for JVM
Standard 'Charset' object can be used
StandardCharsets.UTF_8 can be used instead
Check warning on line 202 in wrapper/src/main/java/software/amazon/jdbc/ConnectionPluginManager.java
github-actions / Qodana Community for JVM
Class is exposed outside of its visibility scope
Class `PluginPipeline` is exposed outside its defined visibility scope
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
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
github-actions / Qodana Community for JVM
Class is exposed outside of its visibility scope
Class `CacheItem` is exposed outside its defined visibility scope
github-actions / Qodana Community for JVM
Class is exposed outside of its visibility scope
Class `Secret` is exposed outside its defined visibility scope
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
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
github-actions / Qodana Community for JVM
Class is exposed outside of its visibility scope
Class `PluginChainJdbcCallable` is exposed outside its defined visibility scope
github-actions / Qodana Community for JVM
Commented out code
Commented out code (25 lines)
github-actions / Qodana Community for JVM
Commented out code
Commented out code (7 lines)