rdblue commented on a change in pull request #888: Use Objects.requireNonNull
to check parameter is or not null
URL: https://github.com/apache/incubator-iceberg/pull/888#discussion_r402660007
##########
File path: api/src/main/java/org/apache/iceberg/PartitionSpec.java
##########
@@ -448,7 +450,7 @@ public Builder truncate(String sourceName, int width) {
Builder add(int sourceId, String name, String transform) {
Types.NestedField column = schema.findField(sourceId);
checkAndAddPartitionName(name, column.fieldId());
- Preconditions.checkNotNull(column, "Cannot find source column: %s",
sourceId);
+ requireNonNull(column, "Cannot find source column: " + sourceId);
Review comment:
Same here. This was correct before.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]