Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.transforms.hook/src/org/eclipse/equinox/internal/transforms/CSVParser.java')
-rw-r--r--bundles/org.eclipse.equinox.transforms.hook/src/org/eclipse/equinox/internal/transforms/CSVParser.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.transforms.hook/src/org/eclipse/equinox/internal/transforms/CSVParser.java b/bundles/org.eclipse.equinox.transforms.hook/src/org/eclipse/equinox/internal/transforms/CSVParser.java
index 223972ac8..2f8ea7462 100644
--- a/bundles/org.eclipse.equinox.transforms.hook/src/org/eclipse/equinox/internal/transforms/CSVParser.java
+++ b/bundles/org.eclipse.equinox.transforms.hook/src/org/eclipse/equinox/internal/transforms/CSVParser.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 IBM Corporation and others.
+ * Copyright (c) 2008, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -38,7 +38,7 @@ public class CSVParser {
public static TransformTuple[] parse(URL transformMapURL, EquinoxLogServices logServices) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(transformMapURL.openStream()));
String currentLine = null;
- List list = new ArrayList();
+ List<TransformTuple> list = new ArrayList<TransformTuple>();
while ((currentLine = reader.readLine()) != null) {
if (currentLine.startsWith("#")) { //$NON-NLS-1$
continue;
@@ -73,6 +73,6 @@ public class CSVParser {
logServices.log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, "Could not parse transform file record :" + currentLine, e); //$NON-NLS-1$
}
}
- return (TransformTuple[]) list.toArray(new TransformTuple[list.size()]);
+ return list.toArray(new TransformTuple[list.size()]);
}
}

Back to the top