Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2016-05-31 08:15:04 -0400
committerPascal Rapicault2017-01-09 21:39:38 -0500
commitb08d73e2d5de09c848c51708cad96d90ce05faf3 (patch)
tree8d8a869fed73efa5730adeb8c4bf6e835071265b
parent73a347f0e73c2422ba7fef05a5cf6ff47feb3fd8 (diff)
downloadrt.equinox.p2-b08d73e2d5de09c848c51708cad96d90ce05faf3.tar.gz
rt.equinox.p2-b08d73e2d5de09c848c51708cad96d90ce05faf3.tar.xz
rt.equinox.p2-b08d73e2d5de09c848c51708cad96d90ce05faf3.zip
Bug 495012 - ProvisioningContext#setMetadataRepositories and
setArtifactRepositories should use varargs Change-Id: I917123d4225320c27cde4e7c05473f37d7f7e713 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java
index 289ac34b8..403c924cb 100644
--- a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java
+++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2015 IBM Corporation and others.
+ * Copyright (c) 2008, 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
@@ -317,7 +317,7 @@ public class ProvisioningContext {
*
* @param artifactRepositories the artifact repository locations
*/
- public void setArtifactRepositories(URI[] artifactRepositories) {
+ public void setArtifactRepositories(URI... artifactRepositories) {
this.artifactRepositories = artifactRepositories;
}
@@ -330,7 +330,7 @@ public class ProvisioningContext {
* metadata repository locations once the metadata queryable has been retrieved.
* @param metadataRepositories the metadata repository locations
*/
- public void setMetadataRepositories(URI[] metadataRepositories) {
+ public void setMetadataRepositories(URI... metadataRepositories) {
this.metadataRepositories = metadataRepositories;
}

Back to the top