Skip to content

Commit ec363cc

Browse files
committed
Inline unnecessary local variable
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1669813 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3505dba commit ec363cc

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/test/java/org/apache/commons/cli/HelpFormatterTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,12 @@ public void testRenderWrappedTextMultiLine()
129129
// multi line text
130130
int width = 16;
131131
int padding = 0;
132-
String text = "aaaa aaaa aaaa" + EOL +
132+
String expected = "aaaa aaaa aaaa" + EOL +
133133
"aaaaaa" + EOL +
134134
"aaaaa";
135-
String expected = text;
136-
135+
137136
StringBuffer sb = new StringBuffer();
138-
new HelpFormatter().renderWrappedText(sb, width, padding, text);
137+
new HelpFormatter().renderWrappedText(sb, width, padding, expected);
139138
assertEquals("multi line text", expected, sb.toString());
140139
}
141140

0 commit comments

Comments
 (0)