You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/11/02 20:32:56 UTC

[GitHub] [solr] noblepaul commented on a diff in pull request #1159: SOLR-16512 : Eliminate noggit JSONWriter.Writable from Solr classes

noblepaul commented on code in PR #1159:
URL: https://github.com/apache/solr/pull/1159#discussion_r1012271453


##########
solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java:
##########
@@ -295,15 +296,12 @@ private static DocCollection collectionFromObjects(
   }
 
   @Override
-  public void write(JSONWriter jsonWriter) {
-    LinkedHashMap<String, DocCollection> map = new LinkedHashMap<>();
-    for (Entry<String, CollectionRef> e : collectionStates.entrySet()) {
-      if (e.getValue().getClass() == CollectionRef.class) {

Review Comment:
   yes. it was redundant. I could remove it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org