Skip to content

Commit 11c4d7d

Browse files
committed
Year update
1 parent a954950 commit 11c4d7d

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntCorePreferences.java

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2018 IBM Corporation and others.
2+
* Copyright (c) 2000, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -607,9 +607,7 @@ private void addURLToExtraClasspathEntries(URL url, IConfigurationElement elemen
607607
if (eclipseRuntime != null) {
608608
eclipseRuntimeRequired = Boolean.parseBoolean(eclipseRuntime);
609609
}
610-
Iterator<AntClasspathEntry> itr = extraClasspathURLs.iterator();
611-
while (itr.hasNext()) {
612-
IAntClasspathEntry entry = itr.next();
610+
for (IAntClasspathEntry entry : extraClasspathURLs) {
613611
if (entry.getEntryURL().equals(url)) {
614612
return;
615613
}
@@ -1063,11 +1061,9 @@ private void addEntryURLs(List<URL> result, IAntClasspathEntry[] entries) {
10631061

10641062
protected ClassLoader[] getPluginClassLoaders() {
10651063
if (orderedPluginClassLoaders == null) {
1066-
Iterator<WrappedClassLoader> classLoaders = pluginClassLoaders.iterator();
10671064
Map<String, WrappedClassLoader> idToLoader = new HashMap<>(pluginClassLoaders.size());
10681065
List<BundleRevision> bundles = new ArrayList<>(pluginClassLoaders.size());
1069-
while (classLoaders.hasNext()) {
1070-
WrappedClassLoader loader = classLoaders.next();
1066+
for (WrappedClassLoader loader : pluginClassLoaders) {
10711067
idToLoader.put(loader.bundle.getSymbolicName(), loader);
10721068
BundleRevision revision = loader.bundle.adapt(BundleRevision.class);
10731069
if (revision != null) {
@@ -1281,9 +1277,7 @@ public List<Task> getTasks() {
12811277
public List<Task> getRemoteTasks() {
12821278
List<Task> result = new ArrayList<>(10);
12831279
if (defaultTasks != null && !defaultTasks.isEmpty()) {
1284-
Iterator<Task> iter = defaultTasks.iterator();
1285-
while (iter.hasNext()) {
1286-
Task task = iter.next();
1280+
for (Task task : defaultTasks) {
12871281
if (!task.isEclipseRuntimeRequired()) {
12881282
result.add(task);
12891283
}
@@ -1348,9 +1342,7 @@ public List<Property> getProperties() {
13481342
public List<Property> getRemoteAntProperties() {
13491343
List<Property> result = new ArrayList<>(10);
13501344
if (defaultProperties != null && !defaultProperties.isEmpty()) {
1351-
Iterator<Property> iter = defaultProperties.iterator();
1352-
while (iter.hasNext()) {
1353-
Property property = iter.next();
1345+
for (Property property : defaultProperties) {
13541346
if (!property.isEclipseRuntimeRequired()) {
13551347
result.add(property);
13561348
}
@@ -1519,9 +1511,7 @@ public List<Type> getTypes() {
15191511
public List<Type> getRemoteTypes() {
15201512
List<Type> result = new ArrayList<>(10);
15211513
if (defaultTypes != null && !defaultTypes.isEmpty()) {
1522-
Iterator<Type> iter = defaultTypes.iterator();
1523-
while (iter.hasNext()) {
1524-
Type type = iter.next();
1514+
for (Type type : defaultTypes) {
15251515
if (!type.isEclipseRuntimeRequired()) {
15261516
result.add(type);
15271517
}

0 commit comments

Comments
 (0)