[jboss-svn-commits] JBL Code SVN: r24422 - labs/jbossrules/trunk/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:26:13 EST 2008


Author: tirelli
Date: 2008-12-18 10:26:13 -0500 (Thu, 18 Dec 2008)
New Revision: 24422

Modified:
   labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/accumulators/MaxAccumulateFunction.java
Log:
JBRULES-1899: fixing MAX accumulate function

Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/accumulators/MaxAccumulateFunction.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/accumulators/MaxAccumulateFunction.java	2008-12-18 14:01:24 UTC (rev 24421)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/accumulators/MaxAccumulateFunction.java	2008-12-18 15:26:13 UTC (rev 24422)
@@ -32,7 +32,7 @@
 public class MaxAccumulateFunction implements AccumulateFunction {
 
     protected static class MaxData implements Externalizable {
-        public double max = Double.MIN_VALUE;
+        public double max = -Double.MAX_VALUE;
         
         public MaxData() {}
 
@@ -64,7 +64,7 @@
      */
     public void init(Serializable 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