You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by GitBox <gi...@apache.org> on 2022/02/15 20:44:42 UTC
[GitHub] [avro] martin-g commented on a change in pull request #1550: AVRO-3382 (java) - require Schema argument be != null when creating a Schema.Field
martin-g commented on a change in pull request #1550:
URL: https://github.com/apache/avro/pull/1550#discussion_r807298566
##########
File path: lang/java/avro/src/main/java/org/apache/avro/Schema.java
##########
@@ -1585,6 +1585,13 @@ private static String validateName(String name) {
return name;
}
+ private static <T> T requireNotNull(T input, String name) {
Review comment:
Maybe use `java.util.Objects#requireNonNull(T, java.lang.String)` ?
--
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@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org