[JAVA] Can't find a rule that flags "private" as a redundant modifier for an enum constructor

57 views
Skip to first unread message

David Racodon

unread,
May 3, 2016, 2:01:27 PM5/3/16
to SonarQube
Hi,

I can't find a rule that flags "private" as a redundant modifier for an enum constructor. Am I missing a rule? If not, do you plan to add this rule or update squid:S2333 - Redundant modifiers should not be used ?

public enum CssVendor {

  MICROSOFT("ms"),
  EPUB("epub");

  private String prefix;

  private CssVendor(String prefix) {
    this.prefix = prefix;
  }

  ...

}

Thank you

Regards,

David RACODON
Freelance QA Consultant

G. Ann Campbell

unread,
May 4, 2016, 12:04:07 PM5/4/16
to SonarQube
Hi David,



Ann

David Racodon

unread,
May 4, 2016, 5:49:41 PM5/4/16
to G. Ann Campbell, SonarQube
Cool! Thanks!

David RACODON
Freelance QA Consultant

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/7f1d504f-fc03-440b-877a-6dafa503d9b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages