dsmiley commented on code in PR #4222:
URL: https://github.com/apache/solr/pull/4222#discussion_r2981776257
##########
solr/core/src/java/org/apache/solr/handler/export/ExportWriter.java:
##########
@@ -180,14 +177,10 @@ protected void writeException(Exception e, PushWriter w,
boolean logException)
throws IOException {
w.writeMap(
mw -> {
- mw.put("responseHeader", singletonMap("status", 400))
+ mw.put("responseHeader", Map.of("status", 400))
.put(
"response",
- Map.of(
- "numFound",
- 0,
- "docs",
- singletonList(singletonMap("EXCEPTION",
e.getMessage()))));
+ Map.of("numFound", 0, "docs", List.of(Map.of("EXCEPTION",
e.getMessage()))));
});
Review Comment:
then use String.valueOf for e.getMessage
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]