Skip to content

Commit

Permalink
An annotation target-type error message has a typo that says "Cannot …
Browse files Browse the repository at this point in the history
…only process" when it should say "Can only process".
  • Loading branch information
rgoldberg authored and remkop committed Nov 23, 2021
1 parent f98a4ae commit 1bb6f72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ private TypedMember extractTypedMember(Element element, String annotation) {
} else if (element.getKind() == ElementKind.METHOD) {
return new TypedMember((ExecutableElement) element, AbstractCommandSpecProcessor.this);
}
error(element, "Cannot only process %s annotations on fields, " +
error(element, "Can only process %s annotations on fields, " +
"methods and method parameters, not on %s", annotation, element.getKind());
return null;
}
Expand Down

0 comments on commit 1bb6f72

Please sign in to comment.