Menu

#344 new rule: factory method naming conventions

open
nobody
None
5
2013-02-16
2011-09-12
No

See http://blog.joda.org/2011/09/factory-names.html

A factory method is a method on an object that is static and returns the type of the enclosing class.

This is clearly a factory method.

Class Foo {
static Foo create() { ... }
}

Determine a good naming convention and write a rule for it.

Discussion


Log in to post a comment.