summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-09 14:51:38 +0200
committerNoel Grandin <noel@peralex.com>2015-01-09 15:10:51 +0200
commit3757c03fc8f138427e21c41ef5e66e8c5a98159c (patch)
tree64d58e7d94aa60c4da475ac038e59d5c1a517437 /filter
parent8912e6dab98eabbdeea870a387d30ef1de938acb (diff)
java: simplify array creation
and remove the need to worry about keeping indexes correct Change-Id: I9a5fc00f7e28f305279b41099274c96daebebb95
Diffstat (limited to 'filter')
-rw-r--r--filter/qa/complex/filter/detection/typeDetection/TypeDetection.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/filter/qa/complex/filter/detection/typeDetection/TypeDetection.java b/filter/qa/complex/filter/detection/typeDetection/TypeDetection.java
index 57558c41d78e..72fb1668d37a 100644
--- a/filter/qa/complex/filter/detection/typeDetection/TypeDetection.java
+++ b/filter/qa/complex/filter/detection/typeDetection/TypeDetection.java
@@ -496,10 +496,9 @@ public class TypeDetection extends ComplexTestCase {
*
*/
log.println("### checkStreamLoader() ###");
- String[] urls = new String[2];
-
- urls[0] = helper.getClassURLString("TypeDetection.props");
- urls[1] = helper.getClassURLString("files.csv");
+ String[] urls = new String[] {
+ helper.getClassURLString("TypeDetection.props"),
+ helper.getClassURLString("files.csv") };
for (int j=0; j<urls.length; j++){
String fileURL = urls[j];