Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new Check: EmptyPublicCtorInClassCheck #291

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

new Check: EmptyPublicCtorInClassCheck #291

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


Copy link

@alex-zuy 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 added a commit to alex-zuy/sevntu.checkstyle that referenced this issue Jan 30, 2015
@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
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.