org.sonar.l10n.java.rules.squid.S3340.html Maven / Gradle / Ivy
For optimal code readability, annotation arguments should be specified in the same order that they were declared in the annotation definition.
Noncompliant
@interface Pet {
String name();
String surname();
}
@Pet(surname ="", name="") // Noncompliant
Compliant
@interface Pet {
String name();
String surname();
}
@Pet(name ="", surname="") // Compliant
© 2015 - 2025 Weber Informatics LLC | Privacy Policy