commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [text] remove unused import statements and unused local variables
Date Sun, 09 Jul 2017 08:35:36 GMT
Repository: commons-text
Updated Branches:
  refs/heads/master e8ded07ba -> aaf4aba36


remove unused import statements and unused local variables


Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/aaf4aba3
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/aaf4aba3
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/aaf4aba3

Branch: refs/heads/master
Commit: aaf4aba369ed0b97d17bc9343f763b0d099dbc2f
Parents: e8ded07
Author: Pascal Schumacher <pascalschumacher@gmx.net>
Authored: Sun Jul 9 10:32:29 2017 +0200
Committer: Pascal Schumacher <pascalschumacher@gmx.net>
Committed: Sun Jul 9 10:32:29 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/commons/text/RandomStringGeneratorTest.java   | 3 ---
 src/test/java/org/apache/commons/text/StrBuilderTest.java         | 2 --
 2 files changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/aaf4aba3/src/test/java/org/apache/commons/text/RandomStringGeneratorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/text/RandomStringGeneratorTest.java b/src/test/java/org/apache/commons/text/RandomStringGeneratorTest.java
index bf00b5c..4d6e699 100644
--- a/src/test/java/org/apache/commons/text/RandomStringGeneratorTest.java
+++ b/src/test/java/org/apache/commons/text/RandomStringGeneratorTest.java
@@ -18,9 +18,6 @@ package org.apache.commons.text;
 
 import org.junit.Test;
 
-import java.util.ArrayList;
-import java.util.List;
-
 import static org.hamcrest.Matchers.allOf;
 import static org.hamcrest.Matchers.greaterThanOrEqualTo;
 import static org.hamcrest.Matchers.lessThanOrEqualTo;

http://git-wip-us.apache.org/repos/asf/commons-text/blob/aaf4aba3/src/test/java/org/apache/commons/text/StrBuilderTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/text/StrBuilderTest.java b/src/test/java/org/apache/commons/text/StrBuilderTest.java
index 8f81434..04d754e 100644
--- a/src/test/java/org/apache/commons/text/StrBuilderTest.java
+++ b/src/test/java/org/apache/commons/text/StrBuilderTest.java
@@ -2027,13 +2027,11 @@ public class StrBuilderTest {
     @Test
     public void testAppendCharBufferNull() throws Exception {
         final StrBuilder sb = new StrBuilder("1234567890");
-        final String text = "Test ";
         final CharBuffer buffer = null;
         sb.append(buffer);
         assertEquals("1234567890", sb.toString());
 
         final StrBuilder sb1 = new StrBuilder("1234567890");
-        final String text1 = "Test ";
         final CharBuffer buffer1 = null;
         sb.append(buffer1, 0, 0);
         assertEquals("1234567890", sb1.toString());


Mime
View raw message