chore: convert qodana config to new format #5187
2064 new problems found by Qodana Community for JVM
Qodana Community for JVM
2064 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Unchecked warning |
🔶 Warning | 991 |
Redundant type cast |
🔶 Warning | 175 |
Field may be 'final' |
🔶 Warning | 142 |
Nullability and data flow problems |
🔶 Warning | 136 |
Javadoc declaration problems |
🔶 Warning | 118 |
Deprecated API usage |
🔶 Warning | 97 |
Redundant type arguments |
🔶 Warning | 33 |
Type parameter hides visible type |
🔶 Warning | 31 |
Link specified as plain text |
🔶 Warning | 28 |
Unnecessarily escaped character |
🔶 Warning | 22 |
String concatenation as argument to 'StringBuilder.append()' call |
🔶 Warning | 20 |
'size() == 0' can be replaced with 'isEmpty()' |
🔶 Warning | 17 |
Constant values |
🔶 Warning | 13 |
Statement with empty body |
🔶 Warning | 13 |
Declaration has problems in Javadoc references |
🔶 Warning | 13 |
Unused assignment |
🔶 Warning | 12 |
Dangling Javadoc comment |
🔶 Warning | 11 |
Result of method call ignored |
🔶 Warning | 11 |
Redundant 'if' statement |
🔶 Warning | 11 |
@NotNull/@Nullable problems |
🔶 Warning | 10 |
Method is identical to its super method |
🔶 Warning | 10 |
Unnecessary call to 'toString()' |
🔶 Warning | 9 |
Suspicious collection method call |
🔶 Warning | 8 |
Access static member via instance reference |
🔶 Warning | 7 |
Minimum 'switch' branches |
🔶 Warning | 7 |
Unnecessary semicolon |
🔶 Warning | 7 |
Too weak variable type leads to unnecessary cast |
🔶 Warning | 6 |
Field can be local |
🔶 Warning | 6 |
Call to 'Arrays.asList()' with too few arguments |
🔶 Warning | 5 |
Catch block may ignore exception |
🔶 Warning | 5 |
Condition is covered by further condition |
🔶 Warning | 5 |
Mismatch between Javadoc and code |
🔶 Warning | 5 |
Redundant character escape |
🔶 Warning | 3 |
Redundant local variable |
🔶 Warning | 3 |
'equals()' method which does not check class of parameter |
🔶 Warning | 2 |
Non-serializable class with 'serialVersionUID' |
🔶 Warning | 2 |
Redundant array length check |
🔶 Warning | 2 |
Method does not call super method |
🔶 Warning | 2 |
Simplifiable conditional expression |
🔶 Warning | 2 |
Stream API call chain can be simplified |
🔶 Warning | 2 |
Redundant 'String' operation |
🔶 Warning | 2 |
Call to 'printStackTrace()' |
🔶 Warning | 2 |
Unnecessary 'return' statement |
🔶 Warning | 2 |
'hashCode()' called on array |
🔶 Warning | 1 |
Assignment used as condition |
🔶 Warning | 1 |
AutoCloseable used without 'try'-with-resources |
🔶 Warning | 1 |
Redundant 'Collection.addAll()' call |
🔶 Warning | 1 |
Suspicious 'Comparator.compare()' implementation |
🔶 Warning | 1 |
Conditional break inside loop |
🔶 Warning | 1 |
'equals()' between objects of inconvertible types |
🔶 Warning | 1 |
Subsequent steps can be fused into Stream API chain |
🔶 Warning | 1 |
Call to 'toString()' on array |
🔶 Warning | 1 |
Infinite recursion |
🔶 Warning | 1 |
Non-final field in 'enum' |
🔶 Warning | 1 |
Unnecessary 'null' check before method call |
🔶 Warning | 1 |
Redundant 'isInstance()' or 'cast()' call |
🔶 Warning | 1 |
Redundant escape in regex replacement string |
🔶 Warning | 1 |
Unnecessary non-capturing group |
🔶 Warning | 1 |
'serialVersionUID' field not declared 'private static final long' |
🔶 Warning | 1 |
Call to 'list.containsAll(collection)' may have poor performance |
🔶 Warning | 1 |
String concatenation in loop |
🔶 Warning | 1 |
Suspicious 'Collection.toArray()' call |
🔶 Warning | 1 |
'throw' inside 'finally' block |
🔶 Warning | 1 |
Unnecessary conversion to 'String' |
🔶 Warning | 1 |
Unnecessary label on 'continue' statement |
🔶 Warning | 1 |
Constant values |
◽️ Notice | 15 |
Method can be extracted |
◽️ Notice | 9 |
Duplicate branches in 'switch' |
◽️ Notice | 8 |
'if' statement with identical branches |
◽️ Notice | 2 |
☁️ View the detailed Qodana report
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
Check warning on line 216 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
'hashCode()' called on array
`hashCode()` called on array should probably be 'Arrays.hashCode()'
Check warning on line 215 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
Nullability and data flow problems
Method invocation `toString` will produce `NullPointerException`
Check warning on line 217 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
'equals()' between objects of inconvertible types
`equals` between objects of inconvertible types 'String' and 'Integer\[\]'
Check warning on line 215 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
Result of method call ignored
Result of `Object.toString()` is ignored
Check warning on line 216 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
Result of method call ignored
Result of `Object.hashCode()` is ignored
Check warning on line 217 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
Result of method call ignored
Result of `String.equals()` is ignored
Check warning on line 215 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
Call to 'toString()' on array
Call to 'toString()' on array
Check warning on line 216 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
'hashCode()' called on array
`hashCode()` called on array should probably be 'Arrays.hashCode()'
Check warning on line 215 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
Nullability and data flow problems
Method invocation `toString` will produce `NullPointerException`
Check warning on line 217 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
'equals()' between objects of inconvertible types
`equals` between objects of inconvertible types 'String' and 'Integer\[\]'
Check warning on line 215 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
Result of method call ignored
Result of `Object.toString()` is ignored
Check warning on line 216 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
Result of method call ignored
Result of `Object.hashCode()` is ignored
Check warning on line 217 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
Result of method call ignored
Result of `String.equals()` is ignored
Check warning on line 215 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
Call to 'toString()' on array
Call to 'toString()' on array
Check warning on line 234 in src/main/java/spoon/support/compiler/jdt/ReferenceBuilder.java
github-actions / Qodana Community for JVM
Access static member via instance reference
Static member 'spoon.support.compiler.jdt.JDTTreeBuilderHelper.handleImplicit(org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference, spoon.reflect.reference.CtTypeReference)' accessed via instance reference
Check warning on line 215 in src/main/java/spoon/support/compiler/jdt/ContextBuilder.java
github-actions / Qodana Community for JVM
Access static member via instance reference
Static member 'spoon.support.compiler.jdt.JDTTreeBuilder.getLogger()' accessed via instance reference
Check warning on line 1522 in src/main/java/spoon/support/compiler/jdt/JDTTreeBuilder.java
github-actions / Qodana Community for JVM
Access static member via instance reference
Static member 'spoon.support.compiler.jdt.JDTTreeBuilderHelper.handleImplicit(org.eclipse.jdt.internal.compiler.lookup.PackageBinding, org.eclipse.jdt.internal.compiler.ast.QualifiedNameReference, java.lang.String, spoon.reflect.reference.CtTypeReference)' accessed via instance reference
Check warning on line 607 in src/main/java/spoon/support/compiler/jdt/ReferenceBuilder.java
github-actions / Qodana Community for JVM
Access static member via instance reference
Static member 'spoon.support.compiler.jdt.JDTTreeBuilderHelper.handleImplicit(org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference, spoon.reflect.reference.CtTypeReference)' accessed via instance reference
Check warning on line 542 in src/main/java/spoon/support/StandardEnvironment.java
github-actions / Qodana Community for JVM
Access static member via instance reference
Static member 'spoon.support.Level.INFO' accessed via instance reference
Check warning on line 200 in src/main/java/spoon/support/compiler/jdt/ContextBuilder.java
github-actions / Qodana Community for JVM
Access static member via instance reference
Static member 'spoon.support.compiler.jdt.JDTTreeBuilder.getLogger()' accessed via instance reference
Check warning on line 227 in src/main/java/spoon/support/compiler/jdt/ContextBuilder.java
github-actions / Qodana Community for JVM
Access static member via instance reference
Static member 'spoon.support.compiler.jdt.JDTTreeBuilder.getLogger()' accessed via instance reference
Check warning on line 216 in src/main/java/spoon/support/reflect/code/CtInvocationImpl.java
github-actions / Qodana Community for JVM
'hashCode()' called on array
`hashCode()` called on array should probably be 'Arrays.hashCode()'
Check warning on line 89 in src/main/java/spoon/refactoring/MethodInvocationSearch.java
github-actions / Qodana Community for JVM
Call to 'Arrays.asList()' with too few arguments
Call to `asList()` with only one argument
Check warning on line 237 in src/main/java/spoon/pattern/PatternBuilder.java
github-actions / Qodana Community for JVM
Call to 'Arrays.asList()' with too few arguments
Call to `asList()` with only one argument
Check warning on line 67 in src/main/java/spoon/refactoring/MethodInvocationSearch.java
github-actions / Qodana Community for JVM
Call to 'Arrays.asList()' with too few arguments
Call to `asList()` with only one argument