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

rules.ExplicitInitialization.md Maven / Gradle / Ivy


Checks that object fields are not being explicitly initialised to their already default value.

Does not check primitive field types.

Valid:
````
class Valid {

    private int foo = 0;

    private Object bar;
}
````

Invalid:
````
class Invalid {

    private Integer foo = 0;

    private Object bar = null;
}
````




© 2015 - 2024 Weber Informatics LLC | Privacy Policy