We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f25315 commit 03e62d3Copy full SHA for 03e62d3
src/ap/java/org/spongepowered/plugin/processor/ListenerParameterAnnotation.java
@@ -123,7 +123,7 @@ void validate(final ParameterContext ctx) {
123
expectedType = declared.getTypeArguments().get(0);
124
}
125
126
- if (!ctx.types().isSameType(expectedType, ctx.param().asType())) {
+ if (!ctx.types().isAssignable(ctx.param().asType(), expectedType)) {
127
ctx.logParamError(
128
"Annotated parameter was of incorrect type for the method referenced in @Getter. The parameter type should be '"
129
+ expectedType + "'!"
0 commit comments