You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by yo...@apache.org on 2009/08/08 02:45:15 UTC

svn commit: r802275 - /lucene/solr/trunk/src/common/org/apache/solr/common/SolrDocument.java

Author: yonik
Date: Sat Aug  8 00:45:15 2009
New Revision: 802275

URL: http://svn.apache.org/viewvc?rev=802275&view=rev
Log:
SOLR-1349: toString() for SolrDocument Map views

Modified:
    lucene/solr/trunk/src/common/org/apache/solr/common/SolrDocument.java

Modified: lucene/solr/trunk/src/common/org/apache/solr/common/SolrDocument.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/common/org/apache/solr/common/SolrDocument.java?rev=802275&r1=802274&r2=802275&view=diff
==============================================================================
--- lucene/solr/trunk/src/common/org/apache/solr/common/SolrDocument.java (original)
+++ lucene/solr/trunk/src/common/org/apache/solr/common/SolrDocument.java Sat Aug  8 00:45:15 2009
@@ -219,7 +219,8 @@
       public void putAll(Map<? extends String, ? extends Collection<Object>> t) {throw new UnsupportedOperationException();}
       public Collection<Collection<Object>> values() {throw new UnsupportedOperationException();}
       public Collection<Object> put(String key, Collection<Object> value) {throw new UnsupportedOperationException();}
-      public Collection<Object> remove(Object key) {throw new UnsupportedOperationException();}      
+      public Collection<Object> remove(Object key) {throw new UnsupportedOperationException();}
+      public String toString() {return _fields.toString();}
     };
   }
 
@@ -247,6 +248,7 @@
       public Collection<Object> values() {throw new UnsupportedOperationException();}
       public Collection<Object> put(String key, Object value) {throw new UnsupportedOperationException();}
       public Collection<Object> remove(Object key) {throw new UnsupportedOperationException();}      
+      public String toString() {return _fields.toString();}
    };
   }