diff --git a/src/test/java/net/dv8tion/jda/test/compliance/RestActionComplianceTest.java b/src/test/java/net/dv8tion/jda/test/compliance/RestActionComplianceTest.java index c00060ef5c..2d3b26a254 100644 --- a/src/test/java/net/dv8tion/jda/test/compliance/RestActionComplianceTest.java +++ b/src/test/java/net/dv8tion/jda/test/compliance/RestActionComplianceTest.java @@ -41,6 +41,8 @@ void testMethodsThatReturnRestActionHaveCorrectAnnotations() methods() .that() .haveRawReturnType(assignableTo(RestAction.class)) + .and() + .arePublic() .should() .beAnnotatedWith(CheckReturnValue.class) .andShould() @@ -54,6 +56,8 @@ void testMethodsThatReturnCompletableFutureHaveCorrectAnnotations() methods() .that() .haveRawReturnType(assignableTo(CompletableFuture.class)) + .and() + .arePublic() .should() .beAnnotatedWith(CheckReturnValue.class) .andShould()