diff options
Diffstat (limited to 'slf4j-migrator/src/test/java/org/slf4j/migrator/line/TrivialMatcher.java')
-rw-r--r-- | slf4j-migrator/src/test/java/org/slf4j/migrator/line/TrivialMatcher.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/slf4j-migrator/src/test/java/org/slf4j/migrator/line/TrivialMatcher.java b/slf4j-migrator/src/test/java/org/slf4j/migrator/line/TrivialMatcher.java index d392769b..032bddca 100644 --- a/slf4j-migrator/src/test/java/org/slf4j/migrator/line/TrivialMatcher.java +++ b/slf4j-migrator/src/test/java/org/slf4j/migrator/line/TrivialMatcher.java @@ -35,23 +35,23 @@ import org.slf4j.migrator.line.SingleConversionRule; class TrivialMatcher implements RuleSet { - private ArrayList<ConversionRule> conversionRuleList; + private final ArrayList<ConversionRule> conversionRuleList; public TrivialMatcher() { // simple rule no capturing group is defined, we use default capturing group which is group zero SingleConversionRule cr = new SingleConversionRule(Pattern.compile("import org.slf4j.converter"), "simple replacement with an unique capturing group"); - // we define 4 differents capturing groups + // we define 4 different capturing groups MultiGroupConversionRule cr1 = new MultiGroupConversionRule(Pattern.compile("(first group)( second group)( third group)( 4th group)")); // group zero is ignored during treatment // replacement for the first cr1.addReplacement(1, "1st group"); - // no replacement for the second group it will remains the same + // no replacement for the second group it will remain the same // empty string for the third group it will be deleted cr1.addReplacement(3, ""); - // no replacement for the third group it will remains the same + // no replacement for the third group it will remain the same - conversionRuleList = new ArrayList<ConversionRule>(); + conversionRuleList = new ArrayList<>(); conversionRuleList.add(cr); conversionRuleList.add(cr1); } @@ -60,4 +60,4 @@ class TrivialMatcher implements RuleSet { return conversionRuleList.iterator(); } -}
\ No newline at end of file +} |