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

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

The newest version!

From the official Oracle Javadoc:

NOTE: The functionality of this Enumeration interface is duplicated by the Iterator interface. In addition, Iterator adds an optional remove operation, and has shorter method names. New implementations should consider using Iterator in preference to Enumeration.

The following code:

public class MyClass implements Enumeration {  // Non-Compliant
  /* ... */
}

should be refactored into:

public class MyClass implements Iterator {     // Compliant
  /* ... */
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy