summaryrefslogtreecommitdiff
path: root/src/main/org/apache/tools
diff options
context:
space:
mode:
authorGintas Grigelionis <gintas@apache.org>2018-08-21 21:03:01 +0200
committerGintas Grigelionis <gintas@apache.org>2018-08-21 21:03:01 +0200
commit039ee10f9271c1665630a81023a0d86f61446a8b (patch)
tree1ab1858f0c4ef5b636485f5a0e385dbf04df6175 /src/main/org/apache/tools
parent460303f6dd173a6dfaa73c1876d1c2a8976df4b8 (diff)
downloadant-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.java2
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;
}