new Check: EmptyPublicCtorInClassCheck #291

Closed
alex-zuy opened this Issue Jan 2, 2015 · 0 comments

Projects

None yet

1 participant

@alex-zuy
Contributor
alex-zuy commented Jan 2, 2015

Check EmptyPublicCtorInClassCheck looks for useless empty public ctors. Class constructor is considered useless by this Check if and only if class has exactly one ctor, which is public and empty(one that has no parameters and has no statements).
For example:

class Dummy {
     public Dummy() {
     }
 }

Idea for this Check was originaly described here: #186

@alex-zuy alex-zuy was assigned by romani Jan 2, 2015
@alex-zuy alex-zuy added a commit to alex-zuy/sevntu.checkstyle that referenced this issue Jan 30, 2015
@alex-zuy alex-zuy new Check EmptyPublicCtorInClassCheck implemented. fixes #291 bd27c56
@romani romani closed this in fbedcae Jan 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment