Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorOleg Krasilnikov2008-03-25 09:23:49 +0000
committerOleg Krasilnikov2008-03-25 09:23:49 +0000
commit386f58f01166825c35f6e6ad60f6f26035eb92bd (patch)
tree1da442e2e9d7ac0f3be0d8ad77b102c456145389 /build
parentce838655de598e353a236dc4d2d5e38c70ecb55b (diff)
downloadorg.eclipse.cdt-386f58f01166825c35f6e6ad60f6f26035eb92bd.tar.gz
org.eclipse.cdt-386f58f01166825c35f6e6ad60f6f26035eb92bd.tar.xz
org.eclipse.cdt-386f58f01166825c35f6e6ad60f6f26035eb92bd.zip
Warning elimination
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/DefaultRunSIProvider.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/DefaultRunSIProvider.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/DefaultRunSIProvider.java
index 8053e6ce588..3c207f1241e 100644
--- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/DefaultRunSIProvider.java
+++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/DefaultRunSIProvider.java
@@ -222,14 +222,14 @@ public class DefaultRunSIProvider implements IExternalScannerInfoProvider {
props.put(LANG_ENV_VAR, "en_US.UTF-8"); //$NON-NLS-1$
}
String[] env = null;
- ArrayList envList = new ArrayList();
- Enumeration names = props.propertyNames();
+ ArrayList<String> envList = new ArrayList<String>();
+ Enumeration<?> names = props.propertyNames();
if (names != null) {
while (names.hasMoreElements()) {
String key = (String) names.nextElement();
envList.add(key + "=" + props.getProperty(key)); //$NON-NLS-1$
}
- env = (String[]) envList.toArray(new String[envList.size()]);
+ env = envList.toArray(new String[envList.size()]);
}
return env;
}

Back to the top