lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r781272 - /lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DebugLogger.java
Date Wed, 03 Jun 2009 06:06:22 GMT
Author: noble
Date: Wed Jun  3 06:06:22 2009
New Revision: 781272

URL: http://svn.apache.org/viewvc?rev=781272&view=rev
Log:
SOLR-1120

Modified:
    lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DebugLogger.java

Modified: lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DebugLogger.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DebugLogger.java?rev=781272&r1=781271&r2=781272&view=diff
==============================================================================
--- lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DebugLogger.java
(original)
+++ lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DebugLogger.java
Wed Jun  3 06:06:22 2009
@@ -42,11 +42,11 @@
  * @version $Id$
  * @since solr 1.3
  */
-public class DebugLogger {
+class DebugLogger {
   private Stack<DebugInfo> debugStack;
 
   NamedList output;
-  SolrWriter writer;
+  private final SolrWriter writer;
 
   private static final String LINE = "---------------------------------------------";
 
@@ -55,7 +55,8 @@
 
   boolean enabled = true;
 
-  public DebugLogger() {
+  public DebugLogger(SolrWriter solrWriter) {
+    writer = solrWriter;
     output = new NamedList();
     debugStack = new Stack<DebugInfo>() {
 
@@ -70,10 +71,6 @@
     output = debugStack.peek().lst;
   }
 
-    public DebugLogger(SolrWriter solrWriter) {
-      writer = solrWriter;
-    }
-
     private DebugInfo peekStack() {
     return debugStack.isEmpty() ? null : debugStack.peek();
   }



Mime
View raw message