dsmiley commented on code in PR #3027:
URL: https://github.com/apache/solr/pull/3027#discussion_r1912653511
##########
solr/solrj/src/java/org/apache/solr/common/ConfigNode.java:
##########
@@ -93,9 +107,16 @@ default String attr(String name) {
return attributes().get(name);
}
- default String requiredStrAttr(String name, Supplier<RuntimeException> err) {
+ /**
+ * Like {@link #attr(String)} but throws an error (incorporating {@code
missing_err}) if not
+ * found.
+ */
+ default String attrRequired(String name, String missing_err) {
Review Comment:
Not my naming choice; I can rename
--
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]