Skip to content

Commit 03e62d3

Browse files
committed
fix @Getter type filtering
1 parent 7f25315 commit 03e62d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ap/java/org/spongepowered/plugin/processor/ListenerParameterAnnotation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void validate(final ParameterContext ctx) {
123123
expectedType = declared.getTypeArguments().get(0);
124124
}
125125
}
126-
if (!ctx.types().isSameType(expectedType, ctx.param().asType())) {
126+
if (!ctx.types().isAssignable(ctx.param().asType(), expectedType)) {
127127
ctx.logParamError(
128128
"Annotated parameter was of incorrect type for the method referenced in @Getter. The parameter type should be '"
129129
+ expectedType + "'!"

0 commit comments

Comments
 (0)