@@ -34,7 +34,7 @@ public void setUp() {
3434 @ Override
3535 @ Test
3636 public void testShortOptionConcatenatedQuoteHandling () throws Exception {
37- final String [] args = new String [] {"-b\" quoted string\" " };
37+ final String [] args = {"-b\" quoted string\" " };
3838
3939 final CommandLine cl = parser .parse (options , args );
4040
@@ -45,7 +45,7 @@ public void testShortOptionConcatenatedQuoteHandling() throws Exception {
4545 @ Override
4646 @ Test
4747 public void testLongOptionWithEqualsQuoteHandling () throws Exception {
48- final String [] args = new String [] {"--bfile=\" quoted string\" " };
48+ final String [] args = {"--bfile=\" quoted string\" " };
4949
5050 final CommandLine cl = parser .parse (options , args );
5151
@@ -55,7 +55,7 @@ public void testLongOptionWithEqualsQuoteHandling() throws Exception {
5555 @ Test
5656 public void testShortOptionQuoteHandlingWithStrip () throws Exception {
5757 parser = DefaultParser .builder ().setStripLeadingAndTrailingQuotes (true ).build ();
58- final String [] args = new String [] {"-b" , "\" quoted string\" " };
58+ final String [] args = {"-b" , "\" quoted string\" " };
5959
6060 final CommandLine cl = parser .parse (options , args );
6161
@@ -65,7 +65,7 @@ public void testShortOptionQuoteHandlingWithStrip() throws Exception {
6565 @ Test
6666 public void testShortOptionQuoteHandlingWithoutStrip () throws Exception {
6767 parser = DefaultParser .builder ().setStripLeadingAndTrailingQuotes (false ).build ();
68- final String [] args = new String [] {"-b" , "\" quoted string\" " };
68+ final String [] args = {"-b" , "\" quoted string\" " };
6969
7070 final CommandLine cl = parser .parse (options , args );
7171
@@ -75,7 +75,7 @@ public void testShortOptionQuoteHandlingWithoutStrip() throws Exception {
7575 @ Test
7676 public void testLongOptionQuoteHandlingWithStrip () throws Exception {
7777 parser = DefaultParser .builder ().setStripLeadingAndTrailingQuotes (true ).build ();
78- final String [] args = new String [] {"--bfile" , "\" quoted string\" " };
78+ final String [] args = {"--bfile" , "\" quoted string\" " };
7979
8080 final CommandLine cl = parser .parse (options , args );
8181
@@ -85,7 +85,7 @@ public void testLongOptionQuoteHandlingWithStrip() throws Exception {
8585 @ Test
8686 public void testLongOptionQuoteHandlingWithoutStrip () throws Exception {
8787 parser = DefaultParser .builder ().setStripLeadingAndTrailingQuotes (false ).build ();
88- final String [] args = new String [] {"--bfile" , "\" quoted string\" " };
88+ final String [] args = {"--bfile" , "\" quoted string\" " };
8989
9090 final CommandLine cl = parser .parse (options , args );
9191
@@ -95,7 +95,7 @@ public void testLongOptionQuoteHandlingWithoutStrip() throws Exception {
9595 @ Test
9696 public void testLongOptionWithEqualsQuoteHandlingWithStrip () throws Exception {
9797 parser = DefaultParser .builder ().setStripLeadingAndTrailingQuotes (true ).build ();
98- final String [] args = new String [] {"--bfile=\" quoted string\" " };
98+ final String [] args = {"--bfile=\" quoted string\" " };
9999
100100 final CommandLine cl = parser .parse (options , args );
101101
@@ -105,7 +105,7 @@ public void testLongOptionWithEqualsQuoteHandlingWithStrip() throws Exception {
105105 @ Test
106106 public void testLongOptionWithEqualsQuoteHandlingWithoutStrip () throws Exception {
107107 parser = DefaultParser .builder ().setStripLeadingAndTrailingQuotes (false ).build ();
108- final String [] args = new String [] {"--bfile=\" quoted string\" " };
108+ final String [] args = {"--bfile=\" quoted string\" " };
109109
110110 final CommandLine cl = parser .parse (options , args );
111111
0 commit comments