Skip to content

Commit

Permalink
Add nullable annotation to signal that the parameter can be null
Browse files Browse the repository at this point in the history
Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
  • Loading branch information
Yannic92 committed Oct 2, 2020
1 parent 6a6c500 commit e51427c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ interface Builder {
* @param handler the handler that will be called with the cause of the connection error.
* @since 1.2.0
*/
Builder connectionErrorHandler(final Consumer<Throwable> handler);
Builder connectionErrorHandler(@Nullable final Consumer<Throwable> handler);

/**
* Creates a new instance of {@code MessagingConfiguration}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public MessagingConfiguration.Builder trustStoreConfiguration(
}

@Override
public Builder connectionErrorHandler(final Consumer<Throwable> handler) {
public Builder connectionErrorHandler(@Nullable final Consumer<Throwable> handler) {
this.connectionErrorHandler = handler;
return this;
}
Expand Down

0 comments on commit e51427c

Please sign in to comment.