diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.engine/src')
2 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileMetadataRepository.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileMetadataRepository.java index 01a9a98cf..4051a1ade 100644 --- a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileMetadataRepository.java +++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileMetadataRepository.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2015 IBM Corporation and others. + * Copyright (c) 2009, 2016 IBM 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 @@ -37,7 +37,7 @@ public class ProfileMetadataRepository extends AbstractMetadataRepository { private static final String FILE_SCHEME = "file"; //$NON-NLS-1$ private static final String DOT_PROFILE = ".profile"; //$NON-NLS-1$ public static final String TYPE = "org.eclipse.equinox.p2.engine.repo.metadataRepository"; //$NON-NLS-1$ - public static final Integer VERSION = new Integer(1); + public static final Integer VERSION = 1; private IProfile profile; private HashSet<IRepositoryReference> repositories = new HashSet<IRepositoryReference>(); diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileParser.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileParser.java index c30742040..eb55ae93d 100644 --- a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileParser.java +++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileParser.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2010 IBM Corporation and others. + * Copyright (c) 2007, 2016 IBM 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 @@ -161,7 +161,7 @@ public abstract class ProfileParser extends MetadataParser implements ProfileXML public IUsPropertiesHandler(AbstractHandler parentHandler, Attributes attributes) { super(parentHandler, IUS_PROPERTIES_ELEMENT); String sizeStr = parseOptionalAttribute(attributes, COLLECTION_SIZE_ATTRIBUTE); - int size = (sizeStr != null ? new Integer(sizeStr).intValue() : 4); + int size = (sizeStr != null ? Integer.parseInt(sizeStr) : 4); iusPropertiesMap = new LinkedHashMap<String, Map<String, String>>(size); } |