@@ -38,6 +38,9 @@ private Map<String, JApiClass> buildClassMap(List<JApiClass> classes) {
38
38
}
39
39
40
40
private void evaluateBinaryCompatibility (JApiClass jApiClass , Map <String , JApiClass > classMap ) {
41
+ if (jApiClass .getAccessModifier ().hasChangedTo (AccessModifier .PUBLIC )) {
42
+ return ; // class appears as "new" public class
43
+ }
41
44
if (jApiClass .getChangeStatus () == JApiChangeStatus .REMOVED ) {
42
45
addCompatibilityChange (jApiClass , JApiCompatibilityChange .CLASS_REMOVED );
43
46
} else if (jApiClass .getChangeStatus () == JApiChangeStatus .MODIFIED ) {
@@ -583,11 +586,11 @@ public JApiMethod callback(JApiClass implementedInterface, Map<String, JApiClass
583
586
}
584
587
585
588
private boolean isAbstract (JApiHasAbstractModifier jApiHasAbstractModifier ) {
586
- boolean isAbstract = false ;
587
- if ( jApiHasAbstractModifier .getAbstractModifier ().hasChangedTo ( AbstractModifier . ABSTRACT )) {
588
- isAbstract = true ;
589
+ if ( jApiHasAbstractModifier . getAbstractModifier (). getNewModifier (). isPresent ()) {
590
+ AbstractModifier abstractModifier = jApiHasAbstractModifier .getAbstractModifier ().getNewModifier (). get (); <
10000
/div>
591
+ return abstractModifier == AbstractModifier . ABSTRACT ;
589
592
}
590
- return isAbstract ;
593
+ return false ;
591
594
}
592
595
593
596
private void checkIfExceptionIsNowChecked (JApiBehavior behavior ) {
@@ -840,14 +843,6 @@ public JApiSuperclass callback(JApiClass clazz, Map<String, JApiClass> classMap,
840
843
checkIfAbstractMethodAdded (jApiClass , classMap );
841
844
}
842
845
843
- private boolean isAbstract (JApiMethod jApiMethod ) {
844
- if (jApiMethod .getAbstractModifier ().getNewModifier ().isPresent ()) {
845
- AbstractModifier abstractModifier = jApiMethod .getAbstractModifier ().getNewModifier ().get ();
846
- return abstractModifier == AbstractModifier .ABSTRACT ;
847
- }
848
- return false ;
849
- }
850
-
851
846
private boolean hasSameType (JApiField field , JApiField otherField ) {
852
847
boolean hasSameNewType = false ;
853
848
if (field .getType ().getNewTypeOptional ().isPresent () && otherField .getType ().getNewTypeOptional ().isPresent ()) {
0 commit comments