Skip to content

Commit

Permalink
Add --application-id parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Jan 26, 2024
1 parent eafd69e commit 5fab21b
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,17 +241,18 @@ protected StreamsUncaughtExceptionHandler getUncaughtExceptionHandler() {

public final String getStreamsApplicationId() {
final String uniqueAppId = this.getUniqueAppId();
if(uniqueAppId == null) {
if(this.applicationId == null) {
if (uniqueAppId == null) {
if (this.applicationId == null) {
throw new IllegalArgumentException("Must pass --application-id or implement #getUniqueAppId()");
}
return this.applicationId;
}
if(this.applicationId == null) {
if (this.applicationId == null) {
return uniqueAppId;
}
if(!uniqueAppId.equals(this.applicationId)) {
throw new IllegalArgumentException("Application ID provided via --application-id does not match #getUniqueAppId()");
if (!uniqueAppId.equals(this.applicationId)) {
throw new IllegalArgumentException(
"Application ID provided via --application-id does not match #getUniqueAppId()");
}
return uniqueAppId;
}
Expand Down

0 comments on commit 5fab21b

Please sign in to comment.