db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r209175 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/EqualityHelper.java
Date Tue, 05 Jul 2005 01:32:39 GMT
Author: clr
Date: Mon Jul  4 18:32:36 2005
New Revision: 209175

URL: http://svn.apache.org/viewcvs?rev=209175&view=rev
Log:
added logger (not used yet)

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/EqualityHelper.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/EqualityHelper.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/EqualityHelper.java?rev=209175&r1=209174&r2=209175&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/EqualityHelper.java (original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/util/EqualityHelper.java Mon Jul
 4 18:32:36 2005
@@ -27,6 +27,9 @@
 
 import java.math.BigDecimal;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
 /**
  * This is a utility class to support equality checking. An EqualityHelper
  * object defines the context of a deepEquals call, because it keeps track
@@ -40,6 +43,13 @@
  * @since 1.1 
  */
 public class EqualityHelper {
+    
+    /** Logger */
+    protected Log logger = 
+        LogFactory.getFactory().getInstance("org.apache.jdo.tck");
+
+    /** true if debug logging in enabled. */
+    protected boolean debug = logger.isDebugEnabled();
     
     /** Used when comparing float values close enough. */
     public static float FLOAT_EPSILON = (float)Math.pow(2.0, -20.0);



Mime
View raw message