mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-02-23 07:11:30 +01:00
Exclude jacoco fields from consistency test
- The Jacoco plugin adds fields "$jacocoData" to the classes which make the test fail
This commit is contained in:
parent
e3abfc3685
commit
dbd0e04a2e
@ -86,6 +86,7 @@ public class ClassesConsistencyTest {
|
||||
.filter(clz -> !CLASSES_EXCLUDED_FROM_VISIBILITY_TEST.contains(clz))
|
||||
.map(Class::getDeclaredFields)
|
||||
.flatMap(Arrays::stream)
|
||||
.filter(f -> f.getName().contains("$"))
|
||||
.filter(f -> hasIllegalFieldVisibility(f))
|
||||
.map(f -> formatField(f))
|
||||
.collect(Collectors.toSet());
|
||||
|
Loading…
Reference in New Issue
Block a user