From 1516f063b55a33cc0379def3017324b56962e964 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 26 Feb 2010 01:02:06 +0000 Subject: [PATCH] don't have to add setParameter(int), we just need to replace setParameters(Object[] parameters) with setParameters(Object ...parameters) Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883 --- base/src/org/compiere/model/Query.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/base/src/org/compiere/model/Query.java b/base/src/org/compiere/model/Query.java index 20fdf9e9f4..fd767e7b02 100644 --- a/base/src/org/compiere/model/Query.java +++ b/base/src/org/compiere/model/Query.java @@ -126,21 +126,12 @@ public class Query * Set query parameters * @param parameters */ - public Query setParameters(Object[] parameters) + public Query setParameters(Object ...parameters) { this.parameters = parameters; return this; } - /** - * Set query parameters (one integer) - * @int_param integer parameter - */ - public Query setParameters(int int_param) { - this.parameters = new Object[]{int_param}; - return this; - } - /** * Set query parameters * @param parameters collection of parameters