Fix checkstyle violations introduced by commit 937d9dac2b43f839d2414c2074c90032ec1f6fbc "Add final".
Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/8d8d9f99 Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/8d8d9f99 Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/8d8d9f99 Branch: refs/heads/release Commit: 8d8d9f99a848e3ecff44e6922a5ed5703a709179 Parents: 2ade6a3 Author: Pascal Schumacher <pascalschumac...@gmx.net> Authored: Sat Jun 9 10:39:57 2018 +0200 Committer: Pascal Schumacher <pascalschumac...@gmx.net> Committed: Sat Jun 9 10:39:57 2018 +0200 ---------------------------------------------------------------------- .../java/org/apache/commons/text/diff/ReplacementsFinderTest.java | 3 ++- .../text/similarity/ParameterizedEditDistanceFromTest.java | 3 ++- .../text/similarity/ParameterizedLevenshteinDistanceTest.java | 3 ++- .../text/similarity/ParameterizedSimilarityScoreFromTest.java | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-text/blob/8d8d9f99/src/test/java/org/apache/commons/text/diff/ReplacementsFinderTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/text/diff/ReplacementsFinderTest.java b/src/test/java/org/apache/commons/text/diff/ReplacementsFinderTest.java index 8331cb1..a93b40c 100644 --- a/src/test/java/org/apache/commons/text/diff/ReplacementsFinderTest.java +++ b/src/test/java/org/apache/commons/text/diff/ReplacementsFinderTest.java @@ -59,7 +59,8 @@ public class ReplacementsFinderTest { @ParameterizedTest @MethodSource("parameters") - public void testReplacementsHandler(final String left, final String right, final int skipped, final Character[] from, final Character[] to) { + public void testReplacementsHandler(final String left, final String right, final int skipped, + final Character[] from, final Character[] to) { final StringsComparator sc = new StringsComparator(left, right); final ReplacementsFinder<Character> replacementFinder = new ReplacementsFinder<>(handler); sc.getScript().visit(replacementFinder); http://git-wip-us.apache.org/repos/asf/commons-text/blob/8d8d9f99/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java b/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java index 7873827..7322d99 100644 --- a/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java +++ b/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java @@ -60,7 +60,8 @@ public class ParameterizedEditDistanceFromTest<R> { @ParameterizedTest @MethodSource("parameters") - public void test(final EditDistance<R> editDistance, final CharSequence left, final CharSequence right, final R distance) { + public void test(final EditDistance<R> editDistance, final CharSequence left, final CharSequence right, + final R distance) { final EditDistanceFrom<R> editDistanceFrom = new EditDistanceFrom<>(editDistance, left); assertThat(editDistanceFrom.apply(right)).isEqualTo(distance); } http://git-wip-us.apache.org/repos/asf/commons-text/blob/8d8d9f99/src/test/java/org/apache/commons/text/similarity/ParameterizedLevenshteinDistanceTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/text/similarity/ParameterizedLevenshteinDistanceTest.java b/src/test/java/org/apache/commons/text/similarity/ParameterizedLevenshteinDistanceTest.java index 8ef683b..0c7367d 100644 --- a/src/test/java/org/apache/commons/text/similarity/ParameterizedLevenshteinDistanceTest.java +++ b/src/test/java/org/apache/commons/text/similarity/ParameterizedLevenshteinDistanceTest.java @@ -95,7 +95,8 @@ public class ParameterizedLevenshteinDistanceTest { @ParameterizedTest @MethodSource("parameters") - public void test(final Integer threshold, final CharSequence left, final CharSequence right, final Integer distance) { + public void test(final Integer threshold, final CharSequence left, final CharSequence right, + final Integer distance) { final LevenshteinDistance metric = new LevenshteinDistance(threshold); assertThat(metric.apply(left, right)).isEqualTo(distance); } http://git-wip-us.apache.org/repos/asf/commons-text/blob/8d8d9f99/src/test/java/org/apache/commons/text/similarity/ParameterizedSimilarityScoreFromTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/text/similarity/ParameterizedSimilarityScoreFromTest.java b/src/test/java/org/apache/commons/text/similarity/ParameterizedSimilarityScoreFromTest.java index 91ee641..3022ed5 100644 --- a/src/test/java/org/apache/commons/text/similarity/ParameterizedSimilarityScoreFromTest.java +++ b/src/test/java/org/apache/commons/text/similarity/ParameterizedSimilarityScoreFromTest.java @@ -52,7 +52,8 @@ public class ParameterizedSimilarityScoreFromTest<R> { @ParameterizedTest @MethodSource("parameters") - public void test(final SimilarityScore<R> similarityScore, final CharSequence left, final CharSequence right, final R distance) { + public void test(final SimilarityScore<R> similarityScore, final CharSequence left, final CharSequence right, + final R distance) { final SimilarityScoreFrom<R> similarityScoreFrom = new SimilarityScoreFrom<>(similarityScore, left); assertThat(similarityScoreFrom.apply(right)).isEqualTo(distance); }