Back to Intellij Community

SingleElementAnnotation

java/java-impl/resources/inspectionDescriptions/SingleElementAnnotation.html

2025.3-rc-2227 B
Original Source

Reports annotations in a shorthand form and suggests rewriting them in a normal form with an attribute name.

Example:

@SuppressWarnings("foo")

After the quick-fix is applied:

@SuppressWarnings(value = "foo")