Exclude jacoco fields from consistency test

- Fix wrong condition check :)
This commit is contained in:
ljacqu 2017-03-26 14:53:52 +02:00
parent dbd0e04a2e
commit 6be6e8e851

View File

@ -86,7 +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 -> !f.getName().contains("$"))
.filter(f -> hasIllegalFieldVisibility(f))
.map(f -> formatField(f))
.collect(Collectors.toSet());