Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(IAOM): filter bugs which appear in super classes
MET04-J
- Loading branch information
1 parent
a483929
commit 912d9fe
Showing
14 changed files
with
153 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
spotbugsTestCases/src/java/increasedAccessibilityOfMethods/Interface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
package increasedAccessibilityOfMethods; | ||
|
||
public interface Interface { | ||
|
||
String packagePrivateInterfaceMethod(); | ||
|
||
} |
2 changes: 0 additions & 2 deletions
2
spotbugsTestCases/src/java/increasedAccessibilityOfMethods/InterfaceImplementation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
package increasedAccessibilityOfMethods; | ||
|
||
public class InterfaceImplementation implements Interface { | ||
|
||
@Override | ||
public String packagePrivateInterfaceMethod() { | ||
return "InterfaceImplementation.packagePrivateInterfaceMethod"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
spotbugsTestCases/src/java/increasedAccessibilityOfMethods/SubClassWithRepeatedOverride.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package increasedAccessibilityOfMethods; | ||
|
||
public class SubClassWithRepeatedOverride extends SuperClassWithOverride { | ||
public SubClassWithRepeatedOverride() { | ||
super(); | ||
} | ||
|
||
@Override | ||
public String superPackagePrivateMethodToProtectedOverriddenInSuperClass() { | ||
return "SubClassWithRepeatedOverride.superPackagePrivateMethodToProtectedOverriddenInSuperClass"; | ||
} | ||
|
||
@Override | ||
public String superProtectedMethodToPublicOverriddenInSuperClass() { | ||
return "SubClassWithRepeatedOverride.superProtectedMethodToPublicOverriddenInSuperClass"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.