Skip to content

Merge pull request #285 from Phoenix-Starlight/refactor/drop-dead-code #80

Merge pull request #285 from Phoenix-Starlight/refactor/drop-dead-code

Merge pull request #285 from Phoenix-Starlight/refactor/drop-dead-code #80

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

163 new problems found by Qodana Community for JVM

Qodana Community for JVM

163 new problems were found

Inspection name Severity Problems
Unused assignment 🔶 Warning 60
Nullability and data flow problems 🔶 Warning 54
Constant values 🔶 Warning 13
Busy wait 🔶 Warning 12
Simplifiable conditional expression 🔶 Warning 4
Inner class may be 'static' 🔶 Warning 3
AutoCloseable used without 'try'-with-resources 🔶 Warning 2
Catch block may ignore exception 🔶 Warning 2
Statement with empty body 🔶 Warning 2
Instantiation of utility class 🔶 Warning 2
Loop statement that does not loop 🔶 Warning 2
Mismatched query and update of collection 🔶 Warning 2
Contract issues 🔶 Warning 1
Infinite loop statement 🔶 Warning 1
Infinite recursion 🔶 Warning 1
String concatenation in loop 🔶 Warning 1
Suspicious 'Collection.toArray()' call 🔶 Warning 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

Details

This result was published with Qodana GitHub Action

Annotations

Check warning on line 117 in src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java

See this annotation in the file changed.

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

AutoCloseable used without 'try'-with-resources

'Response' used without 'try'-with-resources statement

Check warning on line 249 in src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java

See this annotation in the file changed.

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

AutoCloseable used without 'try'-with-resources

'Response' used without 'try'-with-resources statement

Check warning on line 68 in src/main/java/com/seailz/discordjar/voice/udp/VoiceUDP.java

See this annotation in the file changed.

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

Busy wait

Call to `Thread.sleep()` in a loop, probably busy-waiting

Check warning on line 71 in src/main/java/com/seailz/discordjar/cache/JsonCache.java

See this annotation in the file changed.

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

Busy wait

Call to `Thread.sleep()` in a loop, probably busy-waiting

Check warning on line 101 in src/main/java/com/seailz/discordjar/voice/udp/VoiceUDP.java

See this annotation in the file changed.

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

Busy wait

Call to `Thread.sleep()` in a loop, probably busy-waiting

Check warning on line 72 in src/main/java/com/seailz/discordjar/model/channel/internal/AudioChannelImpl.java

See this annotation in the file changed.

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

Busy wait

Call to `Thread.sleep()` in a loop, probably busy-waiting

Check warning on line 72 in src/main/java/com/seailz/discordjar/gateway/heartbeat/HeartLogic.java

See this annotation in the file changed.

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

Busy wait

Call to `Thread.sleep()` in a loop, probably busy-waiting

Check warning on line 111 in src/main/java/com/seailz/discordjar/voice/ws/VoiceGatewayFactory.java

See this annotation in the file changed.

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

Busy wait

Call to `Thread.sleep()` in a loop, probably busy-waiting

Check warning on line 83 in src/main/java/com/seailz/discordjar/gateway/heartbeat/HeartLogic.java

See this annotation in the file changed.

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

Busy wait

Call to `Thread.sleep()` in a loop, probably busy-waiting

Check warning on line 36 in src/main/java/com/seailz/discordjar/utils/StatusRotor.java

See this annotation in the file changed.

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

Busy wait

Call to `Thread.sleep()` in a loop, probably busy-waiting

Check warning on line 38 in src/main/java/com/seailz/discordjar/utils/memory/MemoryWatcher.java

See this annotation in the file changed.

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

Busy wait

Call to `Thread.sleep()` in a loop, probably busy-waiting

Check warning on line 186 in src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java

See this annotation in the file changed.

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

Busy wait

Call to `Thread.sleep()` in a loop, probably busy-waiting

Check warning on line 273 in src/main/java/com/seailz/discordjar/DiscordJar.java

See this annotation in the file changed.

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

Busy wait

Call to `Thread.sleep()` in a loop, probably busy-waiting

Check warning on line 343 in src/main/java/com/seailz/discordjar/DiscordJar.java

See this annotation in the file changed.

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

Busy wait

Call to `Thread.sleep()` in a loop, probably busy-waiting

Check warning on line 82 in src/main/java/com/seailz/discordjar/cache/Cache.java

See this annotation in the file changed.

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

Catch block may ignore exception

Empty `catch` block

Check warning on line 167 in src/main/java/com/seailz/discordjar/cache/Cache.java

See this annotation in the file changed.

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

Catch block may ignore exception

Empty `catch` block

Check warning on line 112 in src/main/java/com/seailz/discordjar/voice/udp/VoiceUDP.java

See this annotation in the file changed.

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

Constant values

Condition `packet != null` is always `true`

Check warning on line 81 in src/main/java/com/seailz/discordjar/voice/udp/VoiceUDP.java

See this annotation in the file changed.

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

Constant values

Condition `frame != null` is always `true` when reached

Check warning on line 48 in src/main/java/com/seailz/discordjar/model/mentions/AllowedMentions.java

See this annotation in the file changed.

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

Constant values

Condition `users == null` is always `false`

Check warning on line 40 in src/main/java/com/seailz/discordjar/model/mentions/AllowedMentions.java

See this annotation in the file changed.

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

Constant values

Condition `parse == null` is always `false`

Check warning on line 268 in src/main/java/com/seailz/discordjar/model/channel/interfaces/Transcriptable.java

See this annotation in the file changed.

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

Constant values

Condition `new Color(embed.color()) != null` is always `true`

Check warning on line 109 in src/main/java/com/seailz/discordjar/events/EventDispatcher.java

See this annotation in the file changed.

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

Constant values

Condition `listenersForEventType == null` is always `false`

Check warning on line 85 in src/main/java/com/seailz/discordjar/cache/Cache.java

See this annotation in the file changed.

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

Constant values

Condition `cache.size() == -1` is always `false`

Check warning on line 312 in src/main/java/com/seailz/discordjar/model/channel/interfaces/Transcriptable.java

See this annotation in the file changed.

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

Constant values

Result of `embed.author().url()` is always 'null'

Check warning on line 92 in src/main/java/com/seailz/discordjar/voice/udp/VoiceUDP.java

See this annotation in the file changed.

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

Constant values

Condition `packet != null` is always `true`