[jboss-jira] [JBoss JIRA] (JBRULES-3268) Support for varargs needed
Martin A (Created) (JIRA)
jira-events at lists.jboss.org
Thu Oct 27 05:52:45 EDT 2011
Support for varargs needed
--------------------------
Key: JBRULES-3268
URL: https://issues.jboss.org/browse/JBRULES-3268
Project: Drools
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.3.0.Final
Reporter: Martin A
Assignee: Mark Proctor
Priority: Minor
I have a method such as:
/*
* determines if any of the events passed as parameter has occurred
*/
public boolean hasAnyEventOccurred(String... events) {
for (String s : events) {
if (hasEventOccurred(s)) {
return true;
}
}
return false;
}
However in rules I can't call it like that:
hasAnyEventOccurred("event1", "event2", "event3"), I have to workaround as so: hasAnyEventOccurred(new String[] {"event1", "event2", "event3"})
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list