Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-10-30 16:45:25 -0400
committerAlexander Kurtakov2018-11-02 02:49:39 -0400
commit136932646392e68535fd158c0ce889b21bf7981e (patch)
tree96d75446e44676997fdeb4c64370d24d88af92ac /bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2
parentf1ebb4ca8f03e0d9118fe5f832da8c6166c9f03b (diff)
downloadrt.equinox.p2-136932646392e68535fd158c0ce889b21bf7981e.tar.gz
rt.equinox.p2-136932646392e68535fd158c0ce889b21bf7981e.tar.xz
rt.equinox.p2-136932646392e68535fd158c0ce889b21bf7981e.zip
Use varargs reflection methods.I20181102-2120I20181102-1800
Updated p2.director formatter settings to use the default Eclipse profile instead of the not-existing "core" one to prevent extra long lines. Change-Id: I4536824d8032f283e110e4aa7758feb7f110b0fc Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2')
-rw-r--r--bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java
index 0dc0d9177..160281a80 100644
--- a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java
+++ b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java
@@ -73,8 +73,8 @@ public class SimplePlanner implements IPlanner {
if (DEBUG) {
Object[] operands = new Object[0];
try {
- Method getOperands = plan.getClass().getMethod("getOperands", new Class[0]); //$NON-NLS-1$
- operands = (Object[]) getOperands.invoke(plan, new Object[0]);
+ Method getOperands = plan.getClass().getMethod("getOperands"); //$NON-NLS-1$
+ operands = (Object[]) getOperands.invoke(plan);
} catch (Throwable e) {
// ignore
}

Back to the top