Skip to content

Commit b124a2c

Browse files
committed
Fixes
1 parent 439c8dc commit b124a2c

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

api/src/main/java/com/javadiscord/jdi/core/api/builders/ListPrivateArchivedThreadsBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public ListPrivateArchivedThreadsBuilder before(OffsetDateTime before) {
2222
}
2323

2424
public ListPrivateArchivedThreadsBuilder limit(int limit) {
25-
this.limit = Optional.ofNullable(limit);
25+
this.limit = Optional.of(limit);
2626
return this;
2727
}
2828

core/src/main/java/com/javadiscord/jdi/core/interaction/InteractionEventHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public void onInteractionCreate(Interaction interaction, Guild guild) {
7878
method.invoke(cachedInstances.get(handler.getName()), paramOrder.toArray());
7979
} else {
8080
Object handlerInstance = handler.getDeclaredConstructor().newInstance();
81+
cachedInstances.put(handler.getName(), handlerInstance);
8182
injectComponents(handlerInstance);
8283
method.invoke(handlerInstance, paramOrder.toArray());
8384
}

qodana.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,25 @@
33
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
44
#-------------------------------------------------------------------------------#
55
version: "1.0"
6-
76
#Specify inspection profile for code analysis
87
profile:
98
name: qodana.starter
10-
119
#Enable inspections
1210
#include:
1311
# - name: <SomeEnabledInspectionId>
14-
1512
#Disable inspections
1613
#exclude:
1714
# - name: <SomeDisabledInspectionId>
1815
# paths:
1916
# - <path/where/not/run/inspection>
20-
2117
projectJDK: 21 #(Applied in CI/CD pipeline)
22-
2318
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
2419
#bootstrap: sh ./prepare-qodana.sh
25-
2620
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
2721
#plugins:
2822
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
29-
3023
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
3124
linter: jetbrains/qodana-jvm:latest
25+
include:
26+
- name: CommentedOutCode
27+
- name: Deprecation

0 commit comments

Comments
 (0)