We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The proper style for a type annotation is to write it immediately before the type that it annotates. For example, this is wrong:
@Interned String m1() { return "foo bar"; }
and this is correct:
However, the insert-annotations-to-source program produces the former rather than the latter.
The same thing goes for fields: the annotation should be on the same line as the type, not above the type and indented.
I have attached files that reproduce the problem and that show the desired output. Run the following commands:
javac MethodReturnTest3.java insert-annotations-to-source MethodReturnTest3.jaif MethodReturnTest3.java
type-annotation-formatting.zip
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The proper style for a type annotation is to write it immediately before the type that it annotates. For example, this is wrong:
and this is correct:
However, the insert-annotations-to-source program produces the former rather than the latter.
The same thing goes for fields: the annotation should be on the same line as the type, not above the type and indented.
I have attached files that reproduce the problem and that show the desired output. Run the following commands:
type-annotation-formatting.zip
The text was updated successfully, but these errors were encountered: