[jboss-svn-commits] JBL Code SVN: r31151 - labs/jbossrules/branches/guvnor_expressionEditor2_baunax_esteban/drools-compiler/src/main/java/org/drools/guvnor/client/modeldriven/brl.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Jan 19 15:18:17 EST 2010
Author: baunax
Date: 2010-01-19 15:18:16 -0500 (Tue, 19 Jan 2010)
New Revision: 31151
Modified:
labs/jbossrules/branches/guvnor_expressionEditor2_baunax_esteban/drools-compiler/src/main/java/org/drools/guvnor/client/modeldriven/brl/RuleModel.java
Log:
added generics
Modified: labs/jbossrules/branches/guvnor_expressionEditor2_baunax_esteban/drools-compiler/src/main/java/org/drools/guvnor/client/modeldriven/brl/RuleModel.java
===================================================================
--- labs/jbossrules/branches/guvnor_expressionEditor2_baunax_esteban/drools-compiler/src/main/java/org/drools/guvnor/client/modeldriven/brl/RuleModel.java 2010-01-19 20:06:10 UTC (rev 31150)
+++ labs/jbossrules/branches/guvnor_expressionEditor2_baunax_esteban/drools-compiler/src/main/java/org/drools/guvnor/client/modeldriven/brl/RuleModel.java 2010-01-19 20:18:16 UTC (rev 31151)
@@ -102,11 +102,11 @@
/**
* @return A list of bound facts (String). Or empty list if none are found.
*/
- public List getBoundFacts() {
+ public List<String> getBoundFacts() {
if ( this.lhs == null ) {
return null;
}
- final List list = new ArrayList();
+ final List<String> list = new ArrayList<String>();
for ( int i = 0; i < this.lhs.length; i++ ) {
if ( this.lhs[i] instanceof FactPattern ) {
final FactPattern p = (FactPattern) this.lhs[i];
@@ -156,11 +156,11 @@
* @return A list of bound facts of the rhs(String). Or empty list if none are found.
* Fix nheron
*/
- public List getRhsBoundFacts() {
+ public List<String> getRhsBoundFacts() {
if ( this.rhs == null ) {
return null;
}
- final List list = new ArrayList();
+ final List<String> list = new ArrayList<String>();
for ( int i = 0; i < this.rhs.length; i++ ) {
if ( this.rhs[i] instanceof ActionInsertFact ) {
final ActionInsertFact p = (ActionInsertFact) this.rhs[i];
@@ -373,8 +373,8 @@
* what bound variables are in scope for a given constraint (including connectives).
* Does not take into account globals.
*/
- public List getBoundVariablesInScope(final ISingleFieldConstraint con) {
- final List result = new ArrayList();
+ public List<String> getBoundVariablesInScope(final ISingleFieldConstraint con) {
+ final List<String> result = new ArrayList<String>();
for ( int i = 0; i < this.lhs.length; i++ ) {
final IPattern pat = this.lhs[i];
if ( pat instanceof FactPattern ) {
@@ -420,8 +420,8 @@
/**
* This will get a list of all bound variables, including bound fields.
*/
- public List getAllVariables() {
- List result = new ArrayList();
+ public List<String> getAllVariables() {
+ List<String> result = new ArrayList<String>();
for ( int i = 0; i < this.lhs.length; i++ ) {
IPattern pat = this.lhs[i];
if ( pat instanceof FactPattern ) {
More information about the jboss-svn-commits
mailing list