chore: convert qodana config to new format #5268
2112 new problems found by Qodana for JVM
Qodana for JVM
2112 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Unchecked warning |
🔶 Warning | 990 |
Redundant type cast |
🔶 Warning | 175 |
Field may be 'final' |
🔶 Warning | 142 |
Nullability and data flow problems |
🔶 Warning | 135 |
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 |
Redundant 'if' statement |
🔶 Warning | 11 |
Method is identical to its super method |
🔶 Warning | 10 |
Unnecessary call to 'toString()' |
🔶 Warning | 9 |
Result of method call ignored |
🔶 Warning | 8 |
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 | 4 |
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 |
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 |
Subsequent steps can be fused into Stream API chain |
🔶 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 |
Duplicated code fragment |
◽️ Notice | 65 |
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 227 in src/main/java/spoon/support/compiler/jdt/ContextBuilder.java
github-actions / Qodana for JVM
Access static member via instance reference
Static member 'spoon.support.compiler.jdt.JDTTreeBuilder.getLogger()' accessed via instance reference
Check warning on line 200 in src/main/java/spoon/support/compiler/jdt/ContextBuilder.java
github-actions / Qodana for JVM
Access static member via instance reference
Static member 'spoon.support.compiler.jdt.JDTTreeBuilder.getLogger()' accessed via instance reference
Check warning on line 235 in src/main/java/spoon/support/compiler/jdt/ReferenceBuilder.java
github-actions / Qodana 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 for JVM
Access static member via instance reference
Static member 'spoon.support.Level.INFO' accessed via instance reference
Check warning on line 1522 in src/main/java/spoon/support/compiler/jdt/JDTTreeBuilder.java
github-actions / Qodana 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 608 in src/main/java/spoon/support/compiler/jdt/ReferenceBuilder.java
github-actions / Qodana 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 for JVM
Access static member via instance reference
Static member 'spoon.support.compiler.jdt.JDTTreeBuilder.getLogger()' accessed via instance reference
Check warning on line 93 in src/main/java/spoon/refactoring/MethodInvocationSearch.java
github-actions / Qodana for JVM
Call to 'Arrays.asList()' with too few arguments
Call to `asList()` with only one argument
Check warning on line 63 in src/main/java/spoon/refactoring/MethodInvocationSearch.java
github-actions / Qodana 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 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 for JVM
Call to 'Arrays.asList()' with too few arguments
Call to `asList()` with only one argument
Check warning on line 89 in src/main/java/spoon/refactoring/MethodInvocationSearch.java
github-actions / Qodana for JVM
Call to 'Arrays.asList()' with too few arguments
Call to `asList()` with only one argument
Check warning on line 730 in src/main/java/spoon/reflect/visitor/DefaultJavaPrettyPrinter.java
github-actions / Qodana for JVM
Assignment used as condition
Assignment `isAssign = elseExpression instanceof CtAssignment` used as condition
Check warning on line 323 in src/main/java/spoon/support/gui/SpoonModelTree.java
github-actions / Qodana for JVM
AutoCloseable used without 'try'-with-resources
'ExecutorService' used without 'try'-with-resources statement
Check warning on line 373 in src/main/java/spoon/support/reflect/eval/VisitorPartialEvaluator.java
github-actions / Qodana for JVM
Too weak variable type leads to unnecessary cast
Cast may be removed by changing the type of 'res' to 'CtStatement'
Check warning on line 52 in src/main/java/spoon/support/reflect/code/CtBreakImpl.java
github-actions / Qodana for JVM
Too weak variable type leads to unnecessary cast
Cast may be removed by changing the type of 'parent' to 'CtStatement'
Check warning on line 425 in src/main/java/spoon/template/Substitution.java
github-actions / Qodana for JVM
Too weak variable type leads to unnecessary cast
Cast may be removed by changing the type of 'c' to 'CtConstructor'
Check warning on line 129 in src/main/java/spoon/pattern/internal/PatternPrinter.java
github-actions / Qodana for JVM
Too weak variable type leads to unnecessary cast
Cast may be removed by changing the type of 'obj' to 'T'
Check warning on line 51 in src/main/java/spoon/support/reflect/code/CtContinueImpl.java
github-actions / Qodana for JVM
Too weak variable type leads to unnecessary cast
Cast may be removed by changing the type of 'parent' to 'CtStatement'
Check warning on line 36 in src/main/java/spoon/support/visitor/ProcessingVisitor.java
github-actions / Qodana for JVM
Too weak variable type leads to unnecessary cast
Cast may be removed by changing the type of 'o' to 'Class'
Check warning on line 42 in src/main/java/spoon/reflect/path/CtPathStringBuilder.java
github-actions / Qodana for JVM
Catch block may ignore exception
Empty `catch` block
Check warning on line 36 in src/main/java/spoon/reflect/path/CtPathStringBuilder.java
github-actions / Qodana for JVM
Catch block may ignore exception
Empty `catch` block
Check warning on line 567 in src/main/java/spoon/support/reflect/eval/VisitorPartialEvaluator.java
github-actions / Qodana for JVM
Catch block may ignore exception
Empty `catch` block
Check warning on line 283 in src/main/java/spoon/reflect/visitor/DefaultJavaPrettyPrinter.java
github-actions / Qodana for JVM
Catch block may ignore exception
'catch' parameter named `ignore` is used
Check warning on line 427 in src/main/java/spoon/reflect/visitor/ImportScannerImpl.java
github-actions / Qodana for JVM
Catch block may ignore exception
Empty `catch` block