File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
annotations/src/main/java/com/javadiscord/jdi/core/processor/validator
api/src/main/java/com/javadiscord/jdi/internal/api Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,11 @@ public boolean validate(Method method) {
31
31
for (Map .Entry <Class <? extends Annotation >, String []> entry : EXPECTED_PARAM_TYPES_MAP
32
32
.entrySet ()) {
33
33
Class <? extends Annotation > annotationClass = entry .getKey ();
34
- if (method .isAnnotationPresent (annotationClass )) {
35
- if (!validateMethodParameters (method , entry .getValue ())) {
36
- return false ;
37
- }
34
+ if (
35
+ method .isAnnotationPresent (annotationClass )
36
+ && !validateMethodParameters (method , entry .getValue ())
37
+ ) {
38
+ return false ;
38
39
}
39
40
}
40
41
return true ;
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ public class RateLimit {
8
8
private int resetAfter ;
9
9
private boolean globalRateLimit ;
10
10
11
- public RateLimit () {}
12
-
13
11
public String getBucket () {
14
12
return bucket ;
15
13
}
You can’t perform that action at this time.
0 commit comments