Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-04-06 21:30:04 +0000
committerKarsten Thoms2017-06-27 08:09:46 +0000
commitff12ff963d3657c29884b15baa1f105c8a09ac77 (patch)
tree18ddbb6b9b6f80a98598846e55ce8577f466c0aa /bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox
parentb1b14d5061eb7a9ae592fbd71a2437bfb5d86ba3 (diff)
downloadrt.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.repository/src/org/eclipse/equinox')
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/persistence/XMLParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/persistence/XMLParser.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/persistence/XMLParser.java
index abc7032fa..fb0570f27 100644
--- a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/persistence/XMLParser.java
+++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/persistence/XMLParser.java
@@ -689,7 +689,7 @@ public abstract class XMLParser extends DefaultHandler implements XMLConstants {
public VersionRange checkVersionRange(String element, String attribute, String value) {
try {
if (value != null)
- return new VersionRange(value);
+ return VersionRange.create(value);
} catch (IllegalArgumentException iae) {
invalidAttributeValue(element, attribute, value);
} catch (NullPointerException npe) {

Back to the top