Use new RedCore import #527
21623 new problems found by Qodana for JVM
Qodana for JVM
21623 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Unchecked warning |
πΆ Warning | 10614 |
Unnecessary 'this' qualifier |
πΆ Warning | 4020 |
Deprecated API usage |
πΆ Warning | 1510 |
Auto-boxing |
πΆ Warning | 892 |
@NotNull/@Nullable problems |
πΆ Warning | 417 |
Statement with empty body |
πΆ Warning | 361 |
Field can be local |
πΆ Warning | 313 |
Lombok @Getter may be used |
πΆ Warning | 276 |
Nullability and data flow problems |
πΆ Warning | 183 |
Auto-unboxing |
πΆ Warning | 146 |
Unused assignment |
πΆ Warning | 126 |
Non-constant field with upper-case name |
πΆ Warning | 114 |
Constant values |
πΆ Warning | 108 |
Javadoc declaration problems |
πΆ Warning | 103 |
Redundant local variable |
πΆ Warning | 101 |
Lombok @Setter may be used |
πΆ Warning | 89 |
Questionable name |
πΆ Warning | 76 |
Possibly lossy implicit cast in compound assignment |
πΆ Warning | 46 |
Call to 'printStackTrace()' |
πΆ Warning | 36 |
Declaration has problems in Javadoc references |
πΆ Warning | 24 |
Result of method call ignored |
πΆ Warning | 18 |
Deprecated member is still used |
πΆ Warning | 14 |
'size() == 0' can be replaced with 'isEmpty()' |
πΆ Warning | 14 |
Dynamic regular expression can be replaced by compiled 'Pattern' |
πΆ Warning | 13 |
Link specified as plain text |
πΆ Warning | 13 |
Method is identical to its super method |
πΆ Warning | 13 |
Suspicious collection method call |
πΆ Warning | 13 |
'Set' can be replaced with 'EnumSet' |
πΆ Warning | 11 |
Integer division in floating-point context |
πΆ Warning | 9 |
Mismatched query and update of collection |
πΆ Warning | 9 |
'Map' can be replaced with 'EnumMap' |
πΆ Warning | 8 |
String concatenation as argument to 'StringBuilder.append()' call |
πΆ Warning | 8 |
Class is exposed outside of its visibility scope |
πΆ Warning | 7 |
Condition is covered by further condition |
πΆ Warning | 7 |
Octal integer |
πΆ Warning | 7 |
Suspicious variable/parameter name combination |
πΆ Warning | 7 |
Vulnerable imported dependency |
πΆ Warning | 7 |
Functional expression can be folded |
πΆ Warning | 6 |
Copy of existing static method body |
πΆ Warning | 6 |
Unused import |
πΆ Warning | 6 |
Unnecessary unary minus |
πΆ Warning | 6 |
Unstable API Usage |
πΆ Warning | 6 |
Bulk operation can be used instead of iteration |
πΆ Warning | 6 |
Catch block may ignore exception |
πΆ Warning | 5 |
Variable is assigned to itself |
πΆ Warning | 5 |
Stream API call chain can be simplified |
πΆ Warning | 5 |
Dangling Javadoc comment |
πΆ Warning | 4 |
Duplicate condition |
πΆ Warning | 4 |
Inner class may be 'static' |
πΆ Warning | 4 |
Manual min/max calculation |
πΆ Warning | 4 |
AutoCloseable used without 'try'-with-resources |
πΆ Warning | 3 |
Too weak variable type leads to unnecessary cast |
πΆ Warning | 3 |
Mismatched read and write of array |
πΆ Warning | 3 |
Value passed as parameter never read |
πΆ Warning | 3 |
String concatenation in loop |
πΆ Warning | 3 |
Local variable used and declared in different 'switch' branches |
πΆ Warning | 3 |
Unnecessary 'continue' statement |
πΆ Warning | 3 |
'default' not last case in 'switch' |
πΆ Warning | 2 |
Call math rounding with 'int' argument |
πΆ Warning | 2 |
Redundant operation on empty container |
πΆ Warning | 2 |
Redundant usage of unmodifiable collection wrappers |
πΆ Warning | 2 |
Method does not call super method |
πΆ Warning | 2 |
Caught exception is immediately rethrown |
πΆ Warning | 1 |
Redundant 'Collection.addAll()' call |
πΆ Warning | 1 |
'static' method declared 'final' |
πΆ Warning | 1 |
Call to 'toString()' on array |
πΆ Warning | 1 |
Method name same as class name |
πΆ Warning | 1 |
Redundant type cast |
πΆ Warning | 1 |
String comparison using '==', instead of 'equals()' |
πΆ Warning | 1 |
'String.equals()' can be replaced with 'String.isEmpty()' |
πΆ Warning | 1 |
Minimum 'switch' branches |
πΆ Warning | 1 |
Unary plus |
πΆ Warning | 1 |
Commented out code |
β½οΈ Notice | 1006 |
Duplicated code fragment |
β½οΈ Notice | 677 |
Non-distinguishable logging calls |
β½οΈ Notice | 33 |
Non-constant string concatenation as argument to logging call |
β½οΈ Notice | 17 |
'if' statement with identical branches or common parts |
β½οΈ Notice | 15 |
Constant values |
β½οΈ Notice | 14 |
Method can be extracted |
β½οΈ Notice | 12 |
Multiple occurrences of the same expression |
β½οΈ Notice | 4 |
Duplicate branches in 'switch' |
β½οΈ Notice | 3 |
Non-strict inequality '>=' or '<=' can be replaced with '==' |
β½οΈ Notice | 1 |
βοΈ View the detailed Qodana report
Detected 18 dependencies
Third-party software list
This page lists the third-party software dependencies used in Modern Warfare Cubed
Dependency | Version | Licenses |
---|---|---|
commons-codec | 1.10 | Apache-2.0 |
commons-compress | 1.8.1 | Apache-2.0 |
commons-io | 2.5 | Apache-2.0 |
commons-lang3 | 3.5 | Apache-2.0 |
commons-logging | 1.1.3 | Apache-2.0 |
groovyscript | 1.2.0-hotfix1 | MIT |
httpclient | 4.3.3 | Apache-2.0 |
httpcore | 4.3.2 | Apache-2.0 CC-BY-2.5 |
icu4j-core-mojang | 51.2 | IBM-ICU |
java-objc-bridge | 1.0.0 | Apache-2.0 |
jline | 3.5.1 | BSD-3-Clause |
jopt-simple | 5.0.3 | MIT |
log4j-api | 2.17.1 | Apache-2.0 |
log4j-core | 2.17.1 | Apache-2.0 |
lombok | 1.18.32 | BSD-3-CLAUSE-NO-TRADEMARK MIT |
maven-artifact | 3.5.3 | Apache-2.0 |
plexus-utils | 3.1.0 | Apache-2.0 |
vecmath | 1.5.2 | GPL-2.0-only ORACLE-OPENJDK-EXCEPTION-2.0 |
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 40 in src/main/java/com/paneedah/mwc/items/guns/M1GarandFactory.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `0.6f`
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `currentTime`
Check warning on line 342 in src/main/java/com/paneedah/weaponlib/animation/DebugPositioner.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `partPosition.zRotation`
Check warning on line 293 in src/main/java/com/paneedah/weaponlib/animation/jim/AnimationData.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `timestamp`
Check warning on line 217 in src/main/java/com/paneedah/weaponlib/EntityBounceable.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `motionY`
Check warning on line 569 in src/main/java/com/paneedah/weaponlib/ClientEventHandler.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `entityID`
Check warning on line 259 in src/main/java/com/paneedah/weaponlib/EntityBounceable.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `motionY`
Check warning on line 336 in src/main/java/com/paneedah/weaponlib/melee/ItemMelee.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `itemStack.getTagCompound().getSize()`
Check warning on line 34 in src/main/java/com/paneedah/weaponlib/animation/jim/SingleAnimation.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `time`
Check warning on line 44 in src/main/java/com/paneedah/mwc/items/guns/turretgunFactory.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `0.1f`
Check warning on line 48 in src/main/java/com/paneedah/mwc/items/guns/P226Factory.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `0.6f`
Check warning on line 321 in src/main/java/com/paneedah/weaponlib/command/DebugCommand.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `false`
Check warning on line 38 in src/main/java/com/paneedah/mwc/items/guns/M79Factory.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `0.101f`
Check warning on line 41 in src/main/java/com/paneedah/mwc/items/guns/DP28Factory.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `0.6f`
Check warning on line 88 in src/main/java/com/paneedah/weaponlib/EntityBounceable.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `this.motionX`
Check warning on line 66 in src/main/java/com/paneedah/weaponlib/animation/jim/AnimationData.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `time`
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `0f`
Check warning on line 46 in src/main/java/com/paneedah/mwc/items/guns/HK_P12Factory.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `0.1f`
Check warning on line 61 in src/main/java/com/paneedah/mwc/items/grenade/FuseGrenadeFactory.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `-0.025f`
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `existingcount + stack.getCount()`
Check warning on line 46 in src/main/java/com/paneedah/mwc/items/guns/M249Factory.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `0.15f`
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `10f`
Check warning on line 48 in src/main/java/com/paneedah/mwc/items/guns/KragJorgensenFactory.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `0.08f`
Check warning on line 46 in src/main/java/com/paneedah/mwc/items/guns/KrissVectorFactory.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `0.5f`
Check warning on line 271 in src/main/java/com/paneedah/weaponlib/sound/JSoundEngine.java
github-actions / Qodana for JVM
Auto-boxing
Auto-boxing `x`