lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From is...@apache.org
Subject [lucene-solr] branch jira/solr-13662-3 updated: SOLR-13662: Using reflection for better toString()
Date Tue, 12 Nov 2019 01:58:51 GMT
This is an automated email from the ASF dual-hosted git repository.

ishan pushed a commit to branch jira/solr-13662-3
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/jira/solr-13662-3 by this push:
     new 262167f  SOLR-13662: Using reflection for better toString()
262167f is described below

commit 262167f16b66d66861c0956195fdb3f59ea3ad96
Author: Ishan Chattopadhyaya <ishan@apache.org>
AuthorDate: Tue Nov 12 07:28:38 2019 +0530

    SOLR-13662: Using reflection for better toString()
---
 solr/core/src/java/org/apache/solr/packagemanager/SolrPackage.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/packagemanager/SolrPackage.java b/solr/core/src/java/org/apache/solr/packagemanager/SolrPackage.java
index fa0ebc8..4e9f69b 100644
--- a/solr/core/src/java/org/apache/solr/packagemanager/SolrPackage.java
+++ b/solr/core/src/java/org/apache/solr/packagemanager/SolrPackage.java
@@ -79,7 +79,7 @@ public class SolrPackage implements Comparable<SolrPackage> {
     this.repository = repository;
   }
 
-  public static class Command {
+  public static class Command implements ReflectMapWriter {
     public String path;
     public String method;
     public Map<String, Object> payload;
@@ -88,7 +88,7 @@ public class SolrPackage implements Comparable<SolrPackage> {
     
     @Override
       public String toString() {
-        return method + " " + path + ", Payload: "+ payload+", Condition: "+condition+",
expected: "+expected;
+        return jsonStr();
       }
   }
 }


Mime
View raw message