diff options
author | Gintas Grigelionis <gintas@apache.org> | 2018-08-21 21:03:01 +0200 |
---|---|---|
committer | Gintas Grigelionis <gintas@apache.org> | 2018-08-21 21:03:01 +0200 |
commit | 039ee10f9271c1665630a81023a0d86f61446a8b (patch) | |
tree | 1ab1858f0c4ef5b636485f5a0e385dbf04df6175 /src/main/org/apache/tools | |
parent | 460303f6dd173a6dfaa73c1876d1c2a8976df4b8 (diff) | |
download | ant-039ee10f9271c1665630a81023a0d86f61446a8b.tar.gz |
No need to be defensive
Diffstat (limited to 'src/main/org/apache/tools')
-rw-r--r-- | src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.java index 1a0de4b38..542db0ab9 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.java @@ -222,7 +222,7 @@ public class JUnitTest extends BaseTest implements Cloneable { */ String getMethodsString() { if (methodsList == null && methodsSpecified) { - methodsList = methods.length == 0 ? "" : String.join(",", methods); + methodsList = String.join(",", methods); } return methodsList; } |