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

resources.report.rules.findbugs.ME_ENUM_FIELD_SETTER.html Maven / Gradle / Ivy



ME_ENUM_FIELD_SETTER

ME: Public enum method unconditionally sets its field (ME_ENUM_FIELD_SETTER)

This public method declared in public enum unconditionally sets enum field, thus this field can be changed by malicious code or by accident from another package. Though mutable enum fields may be used for lazy initialization, it's a bad practice to expose them to the outer world. Consider removing this method or declaring it package-private.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy