risdenk commented on code in PR #1482:
URL: https://github.com/apache/solr/pull/1482#discussion_r1145376884


##########
solr/solrj/src/java/org/apache/solr/common/util/CommandOperation.java:
##########
@@ -223,7 +223,7 @@ public static List<CommandOperation> parse(InputStream in, 
Set<String> singleton
     List<CommandOperation> operations = new ArrayList<>();
 
     final HashMap<Object, Object> map =
-        new HashMap<>(0) {
+        new HashMap<>() {

Review Comment:
   If we want to enforce the size 0 - this needs to move to an real class that 
we can add suppressforbidden to. We can't add suppressforbidden to an anonymous 
class.



##########
solr/core/src/java/org/apache/solr/update/UpdateLog.java:
##########
@@ -2389,4 +2386,19 @@ public void 
seedBucketsWithHighestVersion(SolrIndexSearcher newSearcher) {
       versionInfo.unblockUpdates();
     }
   }
+
+  @SuppressForbidden(reason = "extends linkedhashmap")

Review Comment:
   This was moved here since SuppressForbidden doesn't work on the anonymous 
class



-- 
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-unsubscr...@solr.apache.org

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


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

Reply via email to