diff options
author | Karsten Thoms | 2017-04-06 21:30:04 +0000 |
---|---|---|
committer | Karsten Thoms | 2017-06-27 08:09:46 +0000 |
commit | ff12ff963d3657c29884b15baa1f105c8a09ac77 (patch) | |
tree | 18ddbb6b9b6f80a98598846e55ce8577f466c0aa /bundles/org.eclipse.equinox.p2.metadata.repository | |
parent | b1b14d5061eb7a9ae592fbd71a2437bfb5d86ba3 (diff) | |
download | rt.equinox.p2-ff12ff963d3657c29884b15baa1f105c8a09ac77.tar.gz rt.equinox.p2-ff12ff963d3657c29884b15baa1f105c8a09ac77.tar.xz rt.equinox.p2-ff12ff963d3657c29884b15baa1f105c8a09ac77.zip |
Bug 514885 Pooling Version and VersionRange
- Introduce weak object pool for Verson and VersionRange
- Use VersionRange.create() for getting pooled instances
- JavaDoc & check input for empty string
Change-Id: Ie42bdc1059d8c667af312038c26c035a6ef674af
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.metadata.repository')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/io/MetadataParser.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/io/MetadataParser.java b/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/io/MetadataParser.java index f0f808f4d..e761144e8 100644 --- a/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/io/MetadataParser.java +++ b/bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/io/MetadataParser.java @@ -20,9 +20,7 @@ import org.eclipse.equinox.internal.p2.metadata.ArtifactKey; import org.eclipse.equinox.internal.p2.metadata.InstallableUnit; import org.eclipse.equinox.internal.p2.persistence.XMLParser; import org.eclipse.equinox.p2.metadata.*; -import org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitDescription; -import org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitFragmentDescription; -import org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitPatchDescription; +import org.eclipse.equinox.p2.metadata.MetadataFactory.*; import org.eclipse.equinox.p2.metadata.expression.*; import org.eclipse.equinox.p2.repository.IRepositoryReference; import org.eclipse.equinox.p2.repository.spi.RepositoryReference; @@ -286,7 +284,7 @@ public abstract class MetadataParser extends XMLParser implements XMLConstants { continue; } if (key.equals("equinox.p2.update.range")) { //$NON-NLS-1$ - updateRange = new VersionRange(value); + updateRange = VersionRange.create(value); continue; } //End of backward compatibility |