Skip to content

Update pom.xml

Update pom.xml #112

Triggered via push November 3, 2024 14:22
Status Success
Total duration 7m 37s
Artifacts

qodana.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

165 warnings
Busy wait: src/main/java/com/seailz/discordjar/voice/udp/VoiceUDP.java#L68
Call to `Thread.sleep()` in a loop, probably busy-waiting
Busy wait: src/main/java/com/seailz/discordjar/voice/udp/VoiceUDP.java#L101
Call to `Thread.sleep()` in a loop, probably busy-waiting
Busy wait: src/main/java/com/seailz/discordjar/model/channel/internal/AudioChannelImpl.java#L72
Call to `Thread.sleep()` in a loop, probably busy-waiting
Busy wait: src/main/java/com/seailz/discordjar/gateway/heartbeat/HeartLogic.java#L72
Call to `Thread.sleep()` in a loop, probably busy-waiting
Busy wait: src/main/java/com/seailz/discordjar/voice/ws/VoiceGatewayFactory.java#L111
Call to `Thread.sleep()` in a loop, probably busy-waiting
Busy wait: src/main/java/com/seailz/discordjar/gateway/heartbeat/HeartLogic.java#L83
Call to `Thread.sleep()` in a loop, probably busy-waiting
Busy wait: src/main/java/com/seailz/discordjar/utils/StatusRotor.java#L36
Call to `Thread.sleep()` in a loop, probably busy-waiting
Busy wait: src/main/java/com/seailz/discordjar/cache/JsonCache.java#L71
Call to `Thread.sleep()` in a loop, probably busy-waiting
Busy wait: src/main/java/com/seailz/discordjar/utils/memory/MemoryWatcher.java#L38
Call to `Thread.sleep()` in a loop, probably busy-waiting
Busy wait: src/main/java/com/seailz/discordjar/DiscordJar.java#L274
Call to `Thread.sleep()` in a loop, probably busy-waiting
Busy wait: src/main/java/com/seailz/discordjar/DiscordJar.java#L344
Call to `Thread.sleep()` in a loop, probably busy-waiting
Busy wait: src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java#L186
Call to `Thread.sleep()` in a loop, probably busy-waiting
Constant values: src/main/java/com/seailz/discordjar/voice/udp/VoiceUDP.java#L112
Condition `packet != null` is always `true`
Constant values: src/main/java/com/seailz/discordjar/voice/udp/VoiceUDP.java#L81
Condition `frame != null` is always `true` when reached
Constant values: src/main/java/com/seailz/discordjar/model/mentions/AllowedMentions.java#L48
Condition `users == null` is always `false`
Constant values: src/main/java/com/seailz/discordjar/model/mentions/AllowedMentions.java#L40
Condition `parse == null` is always `false`
Constant values: src/main/java/com/seailz/discordjar/model/channel/interfaces/Transcriptable.java#L268
Condition `new Color(embed.color()) != null` is always `true`
Constant values: src/main/java/com/seailz/discordjar/events/EventDispatcher.java#L109
Condition `listenersForEventType == null` is always `false`
Constant values: src/main/java/com/seailz/discordjar/cache/Cache.java#L85
Condition `cache.size() == -1` is always `false`
Constant values: src/main/java/com/seailz/discordjar/model/channel/interfaces/Transcriptable.java#L312
Result of `embed.author().url()` is always 'null'
Constant values: src/main/java/com/seailz/discordjar/voice/udp/VoiceUDP.java#L92
Condition `packet != null` is always `true`
Constant values: src/main/java/com/seailz/discordjar/cache/Cache.java#L57
Condition `t == null` is always `false`
Constant values: src/main/java/com/seailz/discordjar/model/mentions/AllowedMentions.java#L44
Condition `roles == null` is always `false`
Constant values: src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java#L243
Condition `contentType != null` is always `true`
Contract issues: src/main/java/com/seailz/discordjar/model/monetization/SKU.java#L127
Method takes 2 parameters, while contract clause '_ -\> new' expects 1
Nullability and data flow problems: src/main/java/com/seailz/discordjar/action/sku/ListEntitlementRequest.java#L119
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1519
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java#L253
Method invocation `string` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/gateway/events/DispatchedEvents.java#L257
Dereference of `CommandType.fromCode(p.getJSONObject("d").getJSONObject("data").getInt("type"))` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java#L269
Argument `responseHeaders.get("X-RateLimit-Reset")` might be null
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/invite/internal/InviteMetadataImpl.java#L79
Method invocation `getCode` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/invite/internal/InviteMetadataImpl.java#L76
Method invocation `compile` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/channel/MessagingChannel.java#L177
Dereference of `permissionOverwrites()` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1242
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L382
Method invocation `bot` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1287
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L481
Argument `getSelfUserCache.get()` might be null
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1391
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/channel/thread/Thread.java#L132
Dereference of `permissionOverwrites()` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/invite/internal/InviteMetadataImpl.java#L78
Method invocation `compile` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/automod/AutomodRule.java#L125
Method invocation `roles` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/events/model/automod/AutoModExecutionEvent.java#L49
Method invocation `asGuildChannel` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/guild/Guild.java#L1116
Method invocation `getJSONArray` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1368
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/guild/Member.java#L151
Method invocation `roles` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/channel/GuildChannel.java#L110
Method invocation `add` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1145
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java#L270
Argument `responseHeaders.get("X-RateLimit-Reset-After")` might be null
Nullability and data flow problems: src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java#L268
Argument `responseHeaders.get("X-RateLimit-Remaining")` might be null
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1264
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/channel/internal/GuildChannelImpl.java#L36
Expression `this.guild` might evaluate to null but is returned by the method declared as @NotNull
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1310
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/http/HttpOnlyManager.java#L80
Dereference of `CommandType.fromCode(new JSONObject(interaction.raw()).getJSONObject("data").getInt("type"))` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1414
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/channel/GuildChannel.java#L50
Dereference of `permissionOverwrites()` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1217
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java#L267
Argument `responseHeaders.get("X-RateLimit-Limit")` might be null
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1164
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1342
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/events/model/guild/member/GuildMemberUpdateEvent.java#L39
Method invocation `getMemberById` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/invite/internal/InviteMetadataImpl.java#L81
Method invocation `compile` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/model/invite/internal/InviteMetadataImpl.java#L80
Method invocation `compile` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/DiscordJar.java#L1186
Method invocation `id` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java#L120
Method invocation `string` may produce `NullPointerException`
Infinite loop statement: src/main/java/com/seailz/discordjar/utils/memory/MemoryWatcher.java#L25
`while` statement cannot complete without throwing an exception
Infinite recursion: src/main/java/com/seailz/discordjar/model/message/Message.java#L108
Method `decompile()` recurses infinitely, and can only end by throwing an exception
Inner class may be 'static': src/main/java/com/seailz/discordjar/ws/WebSocket.java#L296
Inner class `WebsocketExceptionError` may be 'static'
Inner class may be 'static': src/main/java/com/seailz/discordjar/utils/rest/Response.java#L118
Inner class `ErroredResponse` may be 'static'
Inner class may be 'static': src/main/java/com/seailz/discordjar/ws/WebSocket.java#L308
Inner class `WebsocketDisconnectError` may be 'static'
Instantiation of utility class: src/main/java/examples/Bot.java#L11
Instantiation of utility class `Bot`
Mismatched query and update of collection: src/main/java/com/seailz/discordjar/command/CommandDispatcher.java#L68
Contents of collection `subOptions` are updated, but never queried
Simplifiable conditional expression: src/main/java/com/seailz/discordjar/model/embed/Embed.java#L35
`url == null ? null : url` can be simplified to 'url'
Simplifiable conditional expression: src/main/java/com/seailz/discordjar/model/embed/Embed.java#L34
`description == null ? null : description` can be simplified to 'description'
Simplifiable conditional expression: src/main/java/com/seailz/discordjar/model/embed/Embed.java#L32
`title == null ? null : title` can be simplified to 'title'
Simplifiable conditional expression: src/main/java/com/seailz/discordjar/model/embed/Embed.java#L36
`timestamp == null ? null : timestamp` can be simplified to 'timestamp'
Suspicious 'Collection.toArray()' call: src/main/java/com/seailz/discordjar/model/guild/Guild.java#L560
Array of type 'java.lang.Object\[\]' expected, 'java.lang.String\[\]' found
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L1222
Variable `res` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L1347
Variable `res` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/utils/image/ImageUtils.java#L12
Variable `fileType` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L692
Variable `raw` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/component/select/entity/RoleSelectMenu.java#L126
The value `new ArrayList<>()` assigned to `this.defaultValues` is never used
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L817
Variable `response` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/user/User.java#L234
Variable `resp` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L1486
Variable `res` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L975
Variable `req` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/action/message/MessageEditAction.java#L68
The value `attachments` assigned to `this.attachments` is never used
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L1460
Variable `response` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/guild/Guild.java#L1083
Variable `req` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/action/channel/ModifyBaseChannelAction.java#L294
Variable `response` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/guild/Guild.java#L970
Variable `arr` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/action/message/MessageEditAction.java#L238
Variable `response` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/interaction/Interaction.java#L190
Variable `compileMethod` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L610
Variable `raw` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/guild/Member.java#L109
Variable `permissions` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/action/message/MessageCreateAction.java#L359
Variable `response` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L547
Variable `raw` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/guild/Guild.java#L996
Variable `arr` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L671
Variable `raw` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/status/activity/Activity.java#L153
The value `null` assigned to `state` is never used
Unused assignment: src/main/java/com/seailz/discordjar/model/guild/Guild.java#L1132
Variable `response` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/guild/Guild.java#L644
The value `obj.getInt("approximate_member_count")` assigned to `approximateMemberCount` is never used
Unused assignment: src/main/java/com/seailz/discordjar/model/role/RoleTag.java#L30
Variable `availableForPurchase` initializer `false` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/action/message/StartThreadForumChannelAction.java#L193
The value `attachments` assigned to `this.attachments` is never used
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L1373
Variable `res` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L631
Variable `raw` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L652
Variable `raw` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/permission/PermissionOverwrite.java#L75
Variable `allowList` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/cache/Cache.java#L246
Variable `response` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/action/sku/ListEntitlementRequest.java#L114
Variable `req` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/voice/udp/VoiceUDP.java#L79
Variable `packet` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L1315
Variable `res` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L1247
Variable `res` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/action/message/MessageCreateAction.java#L74
The value `attachments` assigned to `this.attachments` is never used
Unused assignment: src/main/java/com/seailz/discordjar/model/component/Component.java#L66
Variable `method` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/status/activity/Activity.java#L152
The value `obj.getString("state")` assigned to `state` is never used
Unused assignment: src/main/java/com/seailz/discordjar/model/application/Application.java#L338
Variable `response` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L1191
Variable `res` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/component/select/entity/ChannelSelectMenu.java#L146
The value `new ArrayList<>()` assigned to `this.defaultValues` is never used
Unused assignment: src/main/java/com/seailz/discordjar/utils/rest/DiscordRequest.java#L348
The value `json.getString("message")` assigned to `message` is never used
Unused assignment: src/main/java/com/seailz/discordjar/model/guild/Guild.java#L646
The value `0` assigned to `approximateMemberCount` is never used
Unused assignment: src/main/java/com/seailz/discordjar/model/message/Message.java#L601
Variable `res` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L589
Variable `raw` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/component/select/entity/UserSelectMenu.java#L101
The value `new ArrayList<>()` assigned to `this.defaultValues` is never used
Unused assignment: src/main/java/com/seailz/discordjar/model/role/RoleTag.java#L31
Variable `guildConnections` initializer `false` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/action/guild/GetCurrentUserGuildsAction.java#L100
Variable `response` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/component/select/entity/MentionableSelectMenu.java#L117
The value `new HashMap<>()` assigned to `this.defaultValues` is never used
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L1524
Variable `res` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/voice/ws/VoiceGatewayFactory.java#L72
Variable `udp` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L488
Variable `response` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/utils/rest/ratelimit/Bucket.java#L23
Variable `debug` initializer `false` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/model/permission/PermissionOverwrite.java#L76
Variable `denyList` initializer `null` is redundant
Unused assignment: src/main/java/com/seailz/discordjar/DiscordJar.java#L568
Variable `raw` initializer `null` is redundant
qodana
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, JetBrains/qodana-action@v2023.2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/