mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-08 11:40:58 +01:00
Exclude all methods containing '$' in ListenerConsistencyTest
This commit is contained in:
parent
fc6c120f69
commit
48dce83892
@ -103,9 +103,10 @@ public final class ListenerConsistencyTest {
|
||||
}
|
||||
|
||||
private static boolean isTestableMethod(Method method) {
|
||||
// A method like "access$000" is created by the compiler when a private member is being accessed by an inner
|
||||
// class, so we need to ignore such methods
|
||||
return !Modifier.isPrivate(method.getModifiers()) && !method.getName().startsWith("access$");
|
||||
// Exclude any methods with "$" in it: jacoco creates a "$jacocoInit" method we want to ignore, and
|
||||
// methods like "access$000" are created by the compiler when a private member is being accessed by an inner
|
||||
// class, which is not of interest for us
|
||||
return !Modifier.isPrivate(method.getModifiers()) && !method.getName().contains("$");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user