This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git


The following commit(s) were added to refs/heads/master by this push:
     new 8b07e17  Fix checkstyle violations
8b07e17 is described below

commit 8b07e17402a7ca148aa6442c1c1e25a2f700c713
Author: Pascal Schumacher <pascalschumac...@gmx.net>
AuthorDate: Wed May 29 00:49:36 2019 +0200

    Fix checkstyle violations
---
 src/test/java/org/apache/commons/text/FormattableUtilsTest.java     | 6 ++++--
 .../text/StringSubstitutorWithInterpolatorStringLookupTest.java     | 2 +-
 .../apache/commons/text/similarity/IntersectionSimilarityTest.java  | 4 ++--
 .../org/apache/commons/text/translate/CodePointTranslatorTest.java  | 6 ++----
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/test/java/org/apache/commons/text/FormattableUtilsTest.java 
b/src/test/java/org/apache/commons/text/FormattableUtilsTest.java
index db14eda..6f5c2c3 100644
--- a/src/test/java/org/apache/commons/text/FormattableUtilsTest.java
+++ b/src/test/java/org/apache/commons/text/FormattableUtilsTest.java
@@ -56,7 +56,8 @@ public class FormattableUtilsTest {
         assertThat(FormattableUtils.append("foo", createFormatter(), 0, 3, 
2).toString()).isEqualTo(" fo");
         assertThat(FormattableUtils.append("foo", createFormatter(), 0, 5, 
2).toString()).isEqualTo("   fo");
         assertThat(FormattableUtils.append("foo", createFormatter(), 
LEFT_JUSTIFY, 4, -1).toString()).isEqualTo("foo ");
-        assertThat(FormattableUtils.append("foo", createFormatter(), 
LEFT_JUSTIFY, 6, -1).toString()).isEqualTo("foo   ");
+        assertThat(FormattableUtils.append("foo", createFormatter(), 
LEFT_JUSTIFY, 6, -1).toString())
+            .isEqualTo("foo   ");
         assertThat(FormattableUtils.append("foo", createFormatter(), 
LEFT_JUSTIFY, 3, 2).toString()).isEqualTo("fo ");
         assertThat(FormattableUtils.append("foo", createFormatter(), 
LEFT_JUSTIFY, 5, 2).toString()).isEqualTo("fo   ");
     }
@@ -125,7 +126,8 @@ public class FormattableUtilsTest {
         assertThat(FormattableUtils.append("foo", createFormatter(), 0, -1, 
-1, '_', "*").toString()).isEqualTo("foo");
         assertThat(FormattableUtils.append("foo", createFormatter(), 0, -1, 2, 
'_', "*").toString()).isEqualTo("f*");
         assertThat(FormattableUtils.append("foo", createFormatter(), 0, 4, -1, 
'_', "*").toString()).isEqualTo("_foo");
-        assertThat(FormattableUtils.append("foo", createFormatter(), 0, 6, -1, 
'_', "*").toString()).isEqualTo("___foo");
+        assertThat(FormattableUtils.append("foo", createFormatter(), 0, 6, -1, 
'_', "*").toString())
+            .isEqualTo("___foo");
         assertThat(FormattableUtils.append("foo", createFormatter(), 0, 3, 2, 
'_', "*").toString()).isEqualTo("_f*");
         assertThat(FormattableUtils.append("foo", createFormatter(), 0, 5, 2, 
'_', "*").toString()).isEqualTo("___f*");
         assertThat(FormattableUtils.append("foo", createFormatter(), 
LEFT_JUSTIFY, 4, -1, '_', "*").toString())
diff --git 
a/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java
 
b/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java
index 9213e51..ec592fb 100644
--- 
a/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java
+++ 
b/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java
@@ -102,7 +102,7 @@ public class 
StringSubstitutorWithInterpolatorStringLookupTest {
         Assertions.assertEquals(System.getProperty(spKey), 
strSubst.replace("${sys:" + spKey + "}"));
         Assertions.assertEquals(value, strSubst.replace("${" + key + "}"));
     }
-    
+
     @Test
     public void testSystemProperty() {
         final StringSubstitutor strSubst = new StringSubstitutor(
diff --git 
a/src/test/java/org/apache/commons/text/similarity/IntersectionSimilarityTest.java
 
b/src/test/java/org/apache/commons/text/similarity/IntersectionSimilarityTest.java
index 0f891db..8b4364c 100644
--- 
a/src/test/java/org/apache/commons/text/similarity/IntersectionSimilarityTest.java
+++ 
b/src/test/java/org/apache/commons/text/similarity/IntersectionSimilarityTest.java
@@ -229,8 +229,8 @@ public class IntersectionSimilarityTest {
         return list;
     }
 
-    private static <T> void assertIntersection(final IntersectionSimilarity<T> 
similarity, final CharSequence cs1, final CharSequence cs2,
-            final int sizeA, final int sizeB, final int intersection) {
+    private static <T> void assertIntersection(final IntersectionSimilarity<T> 
similarity,
+            final CharSequence cs1, final CharSequence cs2, final int sizeA, 
final int sizeB, final int intersection) {
         final IntersectionResult result = similarity.apply(cs1, cs2);
         assertEquals(sizeA, result.getSizeA(), "Size A error");
         assertEquals(sizeB, result.getSizeB(), "Size B error");
diff --git 
a/src/test/java/org/apache/commons/text/translate/CodePointTranslatorTest.java 
b/src/test/java/org/apache/commons/text/translate/CodePointTranslatorTest.java
index 8b6966a..ad513f7 100644
--- 
a/src/test/java/org/apache/commons/text/translate/CodePointTranslatorTest.java
+++ 
b/src/test/java/org/apache/commons/text/translate/CodePointTranslatorTest.java
@@ -26,14 +26,12 @@ import static org.assertj.core.api.Assertions.assertThat;
 
 public class CodePointTranslatorTest {
 
-  @Test
+    @Test
     public void testAboveReturningNonNull() throws IOException {
         final NumericEntityEscaper numericEntityEscaper = 
NumericEntityEscaper.above(0);
         final UnicodeEscaper unicodeEscaper = new UnicodeEscaper();
         final String string = unicodeEscaper.toUtf16Escape(0);
-        try (final PipedReader pipedReader = new PipedReader();
-            final PipedWriter pipedWriter = new PipedWriter(pipedReader)) {
-
+        try (PipedReader pipedReader = new PipedReader(); PipedWriter 
pipedWriter = new PipedWriter(pipedReader)) {
             assertThat(numericEntityEscaper.translate(string, 0, 
pipedWriter)).isEqualTo(1);
         }
     }

Reply via email to