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

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

The newest version!

There is no good reason to have a mutable object as the public static member of an interface. Such variables should be moved into classes and their visibility lowered.

This rule checks that interfaces do not have public static array, Collection, or Date members.

Noncompliant Code Example

public interface MyInterface {

  public static String [] strings; // Noncompliant

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy