
org.sonar.l10n.squidjava.rules.squid.S00119.html Maven / Gradle / Ivy
Sharing some naming conventions is a key point to make it possible for a team to efficiently collaborate. This rule allows to check that all type parameter names match a provided regular expression.
The following code snippet illustrates this rule when the regular expression value is "^[A-Z]$":
class MyClass<TYPE> { // Non-Compliant
<TYPE> void addAll(Collection<TYPE> c) { // Non-compliant
}
}
public class MyClass<T> { // Compliant
<T> void addAll(Collection<T> c) { // Compliant
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy