[jboss-svn-commits] JBL Code SVN: r24423 - labs/jbossrules/branches/4.0.x/drools-core/src/main/java/org/drools/base/accumulators.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Dec 18 10:29:01 EST 2008
Author: tirelli
Date: 2008-12-18 10:29:00 -0500 (Thu, 18 Dec 2008)
New Revision: 24423
Modified:
labs/jbossrules/branches/4.0.x/drools-core/src/main/java/org/drools/base/accumulators/MaxAccumulateFunction.java
Log:
JBRULES-1899: fixing MAX accumulate function
Modified: labs/jbossrules/branches/4.0.x/drools-core/src/main/java/org/drools/base/accumulators/MaxAccumulateFunction.java
===================================================================
--- labs/jbossrules/branches/4.0.x/drools-core/src/main/java/org/drools/base/accumulators/MaxAccumulateFunction.java 2008-12-18 15:26:13 UTC (rev 24422)
+++ labs/jbossrules/branches/4.0.x/drools-core/src/main/java/org/drools/base/accumulators/MaxAccumulateFunction.java 2008-12-18 15:29:00 UTC (rev 24423)
@@ -32,7 +32,7 @@
protected static class MaxData implements Serializable {
private static final long serialVersionUID = -7020207404432163956L;
- public double max = Double.MIN_VALUE;
+ public double max = -Double.MAX_VALUE;
}
/* (non-Javadoc)
@@ -47,7 +47,7 @@
*/
public void init(Object context) throws Exception {
MaxData data = (MaxData) context;
- data.max = Double.MIN_VALUE;
+ data.max = -Double.MAX_VALUE;
}
/* (non-Javadoc)
More information about the jboss-svn-commits
mailing list