All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.java.rules.squid.S00119.html Maven / Gradle / Ivy

The newest version!

Shared naming conventions make it possible for a team to collaborate efficiently. Following the established convention of single-letter type parameter names helps users and maintainers of your code quickly see the difference between a type parameter and a poorly named class.

This rule check that all type parameter names match a provided regular expression. The following code snippets use the default regular expression.

Noncompliant Code Example

public class MyClass<TYPE> { // Non-Compliant
  <TYPE> void method(TYPE t) { // Non-compliant
  }
}

Compliant Solution

public class MyClass<T> {
  <T> void method(T t) {
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy