Replies: 2 comments 3 replies
-
|
Please report question in format of CLI output, as shown at https://github.com/checkstyle/checkstyle/blob/master/.github/ISSUE_TEMPLATE/bug_report.md It will give us all details we need to help you |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@romani You are so cruel :) Test.java: config.xml: command: As I understand, if there are annotations before |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Please consider two methods in an interface:
Both variants give an error in Checkstyle:
RedundantModifier: Redundant 'public' modifier. As I understand it, these are different: in the first one, the annotation appears to be on the method, and in the second one, on the return type.If we remove the public modifier:
then the annotation is interpreted as belonging to the method.
Could someone explain how to properly annotate the return type?
Beta Was this translation helpful? Give feedback.
All reactions