1 /* 2 RedundantModifier 3 tokens = (default)METHOD_DEF, VARIABLE_DEF, ANNOTATION_FIELD_DEF, INTERFACE_DEF, \ 4 CTOR_DEF, CLASS_DEF, ENUM_DEF, RESOURCE 5 6 7 */ 8 9 package com.puppycrawl.tools.checkstyle.checks.modifier.redundantmodifier; 10 11 public enum InputRedundantModifierConstructorModifier { 12 VAL1, VAL2; 13 14 private InputRedundantModifierConstructorModifier() { } // violation 15 16 InputRedundantModifierConstructorModifier(int i) { } 17 18 InputRedundantModifierConstructorModifier(char c) { } 19 } 20 21 class ProperPrivateConstructor { 22 private ProperPrivateConstructor() { } 23 }