Skip to content

Commit 06390b9

Browse files
committed
removed system exit calls
1 parent 95e7e4c commit 06390b9

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

javav2/example_code/firehose/src/main/java/com/example/firehose/CreateDeliveryStream.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static void main(String[] args) {
3636

3737
if (args.length != 3) {
3838
System.out.println(usage);
39-
System.exit(1);
39+
return;
4040
}
4141

4242
String bucketARN = args[0];
@@ -70,7 +70,6 @@ public static void createStream(FirehoseClient firehoseClient, String bucketARN,
7070

7171
} catch (FirehoseException e) {
7272
System.out.println(e.getLocalizedMessage());
73-
System.exit(1);
7473
}
7574
}
7675
}

javav2/example_code/firehose/src/main/java/com/example/firehose/DeleteStream.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void main(String[] args) {
3333

3434
if (args.length != 1) {
3535
System.out.println(usage);
36-
System.exit(1);
36+
return;
3737
}
3838

3939
String streamName = args[0];
@@ -57,7 +57,6 @@ public static void delStream(FirehoseClient firehoseClient, String streamName) {
5757

5858
} catch (FirehoseException e) {
5959
System.out.println(e.getLocalizedMessage());
60-
System.exit(1);
6160
}
6261
}
6362
}

javav2/example_code/firehose/src/main/java/com/example/firehose/ListDeliveryStreams.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public static void listStreams(FirehoseClient firehoseClient) {
4242

4343
} catch (FirehoseException e) {
4444
System.out.println(e.getLocalizedMessage());
45-
System.exit(1);
4645
}
4746
}
4847
}

0 commit comments

Comments
 (0)