Skip to content

Commit 36c18ff

Browse files
author
Alexander Söderberg
committed
fix(annotations): allow BuilderModifier to return subtypes
1 parent fb13213 commit 36c18ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloud-annotations/src/main/java/cloud/commandframework/annotations/BuilderModifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public interface BuilderModifier<A extends Annotation, C> {
3939
* @param builder the existing builder
4040
* @return the updated builder
4141
*/
42-
Command.@NonNull Builder<C> modifyBuilder(
42+
Command.@NonNull Builder<? extends C> modifyBuilder(
4343
@NonNull A annotation,
4444
Command.@NonNull Builder<C> builder
4545
);

0 commit comments

Comments
 (0)