@@ -581,13 +581,13 @@ public void visitField(final Field obj) {
581581 }
582582 } else { // isInterface!
583583 if (!obj .isPublic ()) {
584- throw new ClassConstraintException ("Interface field '" + tostring (obj ) + "' must have the ACC_PUBLIC modifier set but hasn't! " );
584+ throw new ClassConstraintException ("Interface field '" + tostring (obj ) + "' must have the ACC_PUBLIC modifier set but hasn't. " );
585585 }
586586 if (!obj .isStatic ()) {
587- throw new ClassConstraintException ("Interface field '" + tostring (obj ) + "' must have the ACC_STATIC modifier set but hasn't! " );
587+ throw new ClassConstraintException ("Interface field '" + tostring (obj ) + "' must have the ACC_STATIC modifier set but hasn't. " );
588588 }
589589 if (!obj .isFinal ()) {
590- throw new ClassConstraintException ("Interface field '" + tostring (obj ) + "' must have the ACC_FINAL modifier set but hasn't! " );
590+ throw new ClassConstraintException ("Interface field '" + tostring (obj ) + "' must have the ACC_FINAL modifier set but hasn't. " );
591591 }
592592 }
593593
@@ -617,7 +617,7 @@ public void visitField(final Field obj) {
617617
618618 final String nameanddesc = name + sig ;
619619 if (fieldNamesAndDesc .contains (nameanddesc )) {
620- throw new ClassConstraintException ("No two fields (like '" + tostring (obj ) + "') are allowed have same names and descriptors! " );
620+ throw new ClassConstraintException ("No two fields (like '" + tostring (obj ) + "') are allowed have same names and descriptors. " );
621621 }
622622 if (fieldNames .contains (name )) {
623623 addMessage ("More than one field of name '" + name + "' detected (but with different type descriptors). This is very unusual." );
@@ -897,10 +897,10 @@ public void visitMethod(final Method obj) {
897897
898898 } else {
899899 if (!obj .isPublic ()) {
900- throw new ClassConstraintException ("Interface method '" + tostring (obj ) + "' must have the ACC_PUBLIC modifier set but hasn't! " );
900+ throw new ClassConstraintException ("Interface method '" + tostring (obj ) + "' must have the ACC_PUBLIC modifier set but hasn't. " );
901901 }
902902 if (!obj .isAbstract ()) {
903- throw new ClassConstraintException ("Interface method '" + tostring (obj ) + "' must have the ACC_ABSTRACT modifier set but hasn't! " );
903+ throw new ClassConstraintException ("Interface method '" + tostring (obj ) + "' must have the ACC_ABSTRACT modifier set but hasn't. " );
904904 }
905905 if (obj .isPrivate () || obj .isProtected () || obj .isStatic () || obj .isFinal () || obj .isSynchronized () || obj .isNative () || obj .isStrictfp ()) {
906906 throw new ClassConstraintException ("Interface method '" + tostring (obj ) + "' must not have"
@@ -918,7 +918,7 @@ public void visitMethod(final Method obj) {
918918
919919 final String nameanddesc = name + sig ;
920920 if (methodNamesAndDesc .contains (nameanddesc )) {
921- throw new ClassConstraintException ("No two methods (like '" + tostring (obj ) + "') are allowed have same names and desciptors! " );
921+ throw new ClassConstraintException ("No two methods (like '" + tostring (obj ) + "') are allowed have same names and desciptors. " );
922922 }
923923 methodNamesAndDesc .add (nameanddesc );
924924
@@ -1015,7 +1015,7 @@ private FAMRAV_Visitor(final JavaClass jc) {
10151015 @ Override
10161016 public void visitConstantFieldref (final ConstantFieldref obj ) {
10171017 if (obj .getTag () != Const .CONSTANT_Fieldref ) {
1018- throw new ClassConstraintException ("ConstantFieldref '" + tostring (obj ) + "' has wrong tag! " );
1018+ throw new ClassConstraintException ("ConstantFieldref '" + tostring (obj ) + "' has wrong tag. " );
10191019 }
10201020 final int nameAndTypeIndex = obj .getNameAndTypeIndex ();
10211021 final ConstantNameAndType cnat = (ConstantNameAndType ) cp .getConstant (nameAndTypeIndex );
@@ -1043,7 +1043,7 @@ public void visitConstantFieldref(final ConstantFieldref obj) {
10431043 @ Override
10441044 public void visitConstantInterfaceMethodref (final ConstantInterfaceMethodref obj ) {
10451045 if (obj .getTag () != Const .CONSTANT_InterfaceMethodref ) {
1046- throw new ClassConstraintException ("ConstantInterfaceMethodref '" + tostring (obj ) + "' has wrong tag! " );
1046+ throw new ClassConstraintException ("ConstantInterfaceMethodref '" + tostring (obj ) + "' has wrong tag. " );
10471047 }
10481048 final int nameAndTypeIndex = obj .getNameAndTypeIndex ();
10491049 final ConstantNameAndType cnat = (ConstantNameAndType ) cp .getConstant (nameAndTypeIndex );
@@ -1076,7 +1076,7 @@ public void visitConstantInterfaceMethodref(final ConstantInterfaceMethodref obj
10761076 @ Override
10771077 public void visitConstantMethodref (final ConstantMethodref obj ) {
10781078 if (obj .getTag () != Const .CONSTANT_Methodref ) {
1079- throw new ClassConstraintException ("ConstantMethodref '" + tostring (obj ) + "' has wrong tag! " );
1079+ throw new ClassConstraintException ("ConstantMethodref '" + tostring (obj ) + "' has wrong tag. " );
10801080 }
10811081 final int nameAndTypeIndex = obj .getNameAndTypeIndex ();
10821082 final ConstantNameAndType cnat = (ConstantNameAndType ) cp .getConstant (nameAndTypeIndex );
0 commit comments