[jboss-svn-commits] JBL Code SVN: r31489 - labs/jbossrules/soa_branches/BRMS-5.0.1/drools-compiler/src/main/java/org/drools/guvnor/server/util.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Feb 8 08:12:14 EST 2010
Author: ryanzhang
Date: 2010-02-08 08:12:14 -0500 (Mon, 08 Feb 2010)
New Revision: 31489
Modified:
labs/jbossrules/soa_branches/BRMS-5.0.1/drools-compiler/src/main/java/org/drools/guvnor/server/util/GuidedDTDRLPersistence.java
Log:
BRMS-256 Fixed the high version JRE compiler error about name clash
Modified: labs/jbossrules/soa_branches/BRMS-5.0.1/drools-compiler/src/main/java/org/drools/guvnor/server/util/GuidedDTDRLPersistence.java
===================================================================
--- labs/jbossrules/soa_branches/BRMS-5.0.1/drools-compiler/src/main/java/org/drools/guvnor/server/util/GuidedDTDRLPersistence.java 2010-02-08 12:48:47 UTC (rev 31488)
+++ labs/jbossrules/soa_branches/BRMS-5.0.1/drools-compiler/src/main/java/org/drools/guvnor/server/util/GuidedDTDRLPersistence.java 2010-02-08 13:12:14 UTC (rev 31489)
@@ -79,7 +79,7 @@
if (validCell(cell)) {
if (c instanceof ActionInsertFactCol) {
ActionInsertFactCol ac = (ActionInsertFactCol)c;
- LabelledAction a = find(actions, ac.boundName);
+ LabelledAction a = findLabelledAction(actions, ac.boundName);
if (a == null) {
a = new LabelledAction();
a.boundName = ac.boundName;
@@ -92,7 +92,7 @@
ins.addFieldValue(val);
} else if (c instanceof ActionRetractFactCol) {
ActionRetractFactCol rf = (ActionRetractFactCol)c;
- LabelledAction a = find(actions, rf.boundName);
+ LabelledAction a = findLabelledAction(actions, rf.boundName);
if (a == null) {
a = new LabelledAction();
a.action = new ActionRetractFact(rf.boundName);
@@ -101,7 +101,7 @@
}
} else if (c instanceof ActionSetFieldCol) {
ActionSetFieldCol sf = (ActionSetFieldCol)c;
- LabelledAction a = find(actions, sf.boundName);
+ LabelledAction a = findLabelledAction(actions, sf.boundName);
if (a == null) {
a = new LabelledAction();
a.boundName = sf.boundName;
@@ -131,7 +131,7 @@
}
}
- private LabelledAction find(List<LabelledAction> actions, String boundName) {
+ private LabelledAction findLabelledAction(List<LabelledAction> actions, String boundName) {
for (LabelledAction labelledAction : actions) {
if (labelledAction.boundName.equals(boundName)) {
return labelledAction;
@@ -156,7 +156,7 @@
if (validCell(cell)) {
//get or create the pattern it belongs too
- FactPattern fp = find(patterns, c.boundName);
+ FactPattern fp = findFactPattern(patterns, c.boundName);
if (fp == null) {
fp = new FactPattern(c.factType);
fp.boundName = c.boundName;
@@ -206,7 +206,7 @@
return operator == null || "".equals(operator);
}
- private FactPattern find(List<FactPattern> patterns, String boundName) {
+ private FactPattern findFactPattern(List<FactPattern> patterns, String boundName) {
for (FactPattern factPattern : patterns) {
if (factPattern.boundName.equals(boundName)) {
return factPattern;
More information about the jboss-svn-commits
mailing list