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

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

As of Java 5, enum is a keyword and can therefore no longer be used a variable names for instance. Recent versions of the Java compiler will generate errors while compiling code still using enum as a name.

The following code snippet illustrates this rule:

public void doSomething() {
  int enum = 42;            // Non-Compliant
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy