new Check: EmptyPublicCtorInClassCheck #291

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


None yet

1 participant

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