Skip to content

Commit

Permalink
[Hotfix] Fix wrong usage of Preconditions (#2829)
Browse files Browse the repository at this point in the history
Fix wrong usage of Preconditions
  • Loading branch information
link3280 authored May 12, 2024
1 parent 9432472 commit eabf74e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ protected TableRuntime(
ServerTableIdentifier tableIdentifier,
TableRuntimeHandler tableHandler,
Map<String, String> properties) {
Preconditions.checkNotNull(tableIdentifier, tableHandler);
Preconditions.checkNotNull(tableIdentifier, "ServerTableIdentifier must not be null.");
Preconditions.checkNotNull(tableHandler, "TableRuntimeHandler must not be null.");
this.tableHandler = tableHandler;
this.tableIdentifier = tableIdentifier;
this.tableConfiguration = TableConfiguration.parseConfig(properties);
Expand All @@ -111,7 +112,8 @@ protected TableRuntime(
}

protected TableRuntime(TableRuntimeMeta tableRuntimeMeta, TableRuntimeHandler tableHandler) {
Preconditions.checkNotNull(tableRuntimeMeta, tableHandler);
Preconditions.checkNotNull(tableRuntimeMeta, "TableRuntimeMeta must not be null.");
Preconditions.checkNotNull(tableHandler, "TableRuntimeHandler must not be null.");
this.tableHandler = tableHandler;
this.tableIdentifier =
ServerTableIdentifier.of(
Expand Down

0 comments on commit eabf74e

Please sign in to comment.