commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1669813 - /commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/HelpFormatterTest.java
Date Sat, 28 Mar 2015 18:06:21 GMT
Author: britter
Date: Sat Mar 28 18:06:20 2015
New Revision: 1669813

URL: http://svn.apache.org/r1669813
Log:
Inline unnecessary local variable

Modified:
    commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/HelpFormatterTest.java

Modified: commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/HelpFormatterTest.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/HelpFormatterTest.java?rev=1669813&r1=1669812&r2=1669813&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/HelpFormatterTest.java (original)
+++ commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/HelpFormatterTest.java Sat
Mar 28 18:06:20 2015
@@ -129,13 +129,12 @@ public class HelpFormatterTest
         // multi line text
         int width = 16;
         int padding = 0;
-        String text = "aaaa aaaa aaaa" + EOL +
+        String expected = "aaaa aaaa aaaa" + EOL +
                       "aaaaaa" + EOL +
                       "aaaaa";
-        String expected = text;
-        
+
         StringBuffer sb = new StringBuffer();
-        new HelpFormatter().renderWrappedText(sb, width, padding, text);
+        new HelpFormatter().renderWrappedText(sb, width, padding, expected);
         assertEquals("multi line text", expected, sb.toString());
     }
 



Mime
View raw message