diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/persistence/P2FParser.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/persistence/P2FParser.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/persistence/P2FParser.java b/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/persistence/P2FParser.java index fc755e86d..444f14763 100644 --- a/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/persistence/P2FParser.java +++ b/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/persistence/P2FParser.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2016 WindRiver Corporation and others. + * Copyright (c) 2011, 2017 WindRiver Corporation and others. * 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 @@ -65,7 +65,7 @@ public class P2FParser extends XMLParser implements P2FConstants { public RepositoriesHandler(AbstractHandler parentHandler, Attributes attributes) { super(parentHandler, REPOSITORIES_ELEMENT); String size = parseOptionalAttribute(attributes, COLLECTION_SIZE_ATTRIBUTE); - uris = (size == null) ? new ArrayList<URI>() : new ArrayList<URI>(Integer.parseInt(size)); + uris = (size == null) ? new ArrayList<>() : new ArrayList<>(Integer.parseInt(size)); } @Override @@ -124,7 +124,7 @@ public class P2FParser extends XMLParser implements P2FConstants { public IUsHandler(ContentHandler parentHandler, Attributes attributes) { super(parentHandler, IUS_ELEMENT); String size = parseOptionalAttribute(attributes, COLLECTION_SIZE_ATTRIBUTE); - ius = (size != null ? new ArrayList<IUDetail>(Integer.parseInt(size)) : new ArrayList<IUDetail>()); + ius = (size != null ? new ArrayList<>(Integer.parseInt(size)) : new ArrayList<>()); } @Override @@ -225,7 +225,7 @@ public class P2FParser extends XMLParser implements P2FConstants { public List<IUDetail> getIUs() { if (iusListed == null) { - iusListed = new ArrayList<IUDetail>(); + iusListed = new ArrayList<>(); } return iusListed; } |