MingletonDescriptionDerived from "method singleton,” a Mingleton is a class which has any static method that returns some state without taking any parameters. Many will consider these edge cases and not want to report on them. CriteriaMingletons have a public static method that takes no parameters and returns a non-primitive object. Examplepublic class Mingleton {
public static Foo getFoo() {
return Foo.getDefault();
// or return new Foo();
}
}
|