diff options
author | Brian Vosburgh | 2013-01-28 20:16:59 +0000 |
---|---|---|
committer | Brian Vosburgh | 2013-01-28 21:15:19 +0000 |
commit | 1a911cb6ed7c832339ea3e14dc5ade7b8dcf0810 (patch) | |
tree | 64b1e4638717aca1ab0336af8558922e51b569a3 /jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/SchemaLibraryImpl.java | |
parent | f7b7e7ff48ae689d470a51e42473d01bebdf4ec8 (diff) | |
download | webtools.dali-1a911cb6ed7c832339ea3e14dc5ade7b8dcf0810.tar.gz webtools.dali-1a911cb6ed7c832339ea3e14dc5ade7b8dcf0810.tar.xz webtools.dali-1a911cb6ed7c832339ea3e14dc5ade7b8dcf0810.zip |
clean up utility classes (iterables and iterators in particular); add
lots of Transformers
Diffstat (limited to 'jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/SchemaLibraryImpl.java')
-rw-r--r-- | jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/SchemaLibraryImpl.java | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/SchemaLibraryImpl.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/SchemaLibraryImpl.java index b5f9b62edb..d1d3768bee 100644 --- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/SchemaLibraryImpl.java +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/SchemaLibraryImpl.java @@ -1,12 +1,12 @@ /******************************************************************************* - * Copyright (c) 2010, 2011 Oracle. 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 http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle - initial API and implementation - *******************************************************************************/ + * Copyright (c) 2010, 2013 Oracle. 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 http://www.eclipse.org/legal/epl-v10.html. + * + * Contributors: + * Oracle - initial API and implementation + ******************************************************************************/ package org.eclipse.jpt.jaxb.core.internal; import java.util.Collections; @@ -19,7 +19,7 @@ import org.eclipse.jpt.common.utility.collection.Bag; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.collection.HashBag; import org.eclipse.jpt.common.utility.internal.collection.ListTools; -import org.eclipse.jpt.common.utility.internal.iterable.TransformationIterable; +import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jaxb.core.JaxbPreferences; import org.eclipse.jpt.jaxb.core.JaxbProject; import org.eclipse.jpt.jaxb.core.SchemaEntry; @@ -55,12 +55,7 @@ public class SchemaLibraryImpl public List<String> getSchemaLocations() { return Collections.unmodifiableList( ListTools.list( - new TransformationIterable<SchemaEntry, String>(this.schemaEntries) { - @Override - protected String transform(SchemaEntry o) { - return o.getLocation(); - } - })); + IterableTools.transform(this.schemaEntries, SchemaEntry.LOCATION_TRANSFORMER))); } public void setSchemaLocations(List<String> schemaLocations) { |