From ca0143d91c81a5bb2facd5bfc782be4921ce7a20 Mon Sep 17 00:00:00 2001 From: Michail Plushnikov Date: Thu, 13 Feb 2014 21:07:18 +0100 Subject: [PATCH] merged changes --- .../test/java/de/plushnikov/lombok/LombokParsingTestCase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lombok-plugin/src/test/java/de/plushnikov/lombok/LombokParsingTestCase.java b/lombok-plugin/src/test/java/de/plushnikov/lombok/LombokParsingTestCase.java index c14f0dbfc..4db1074f5 100644 --- a/lombok-plugin/src/test/java/de/plushnikov/lombok/LombokParsingTestCase.java +++ b/lombok-plugin/src/test/java/de/plushnikov/lombok/LombokParsingTestCase.java @@ -30,7 +30,7 @@ public abstract class LombokParsingTestCase extends LombokLightCodeInsightTestCase { private static final Logger LOG = Logger.getLogger(LombokParsingTestCase.class); - private static final Collection MODIFIERS_TO_COMPARE = Collections2.filter(Arrays.asList(PsiModifier.MODIFIERS), Predicates.not(Predicates.equalTo(PsiModifier.DEFAULT))); + private static final Collection MODIFIERS_TO_COMPARE = Arrays.asList(PsiModifier.MODIFIERS); protected boolean shouldCompareAnnotations() { return false; @@ -141,7 +141,7 @@ private void compareModifiers(PsiModifierList beforeModifierList, PsiModifierLis assertNotNull(afterModifierList); if (shouldCompareModifiers()) { - for (String modifier : modifiers) { + for (String modifier : MODIFIERS_TO_COMPARE) { assertEquals(modifier + " Modifier is not equal; ", afterModifierList.hasModifierProperty(modifier), beforeModifierList.hasModifierProperty(modifier)); } }