Skip to content

Commit 00db446

Browse files
committed
updated the Java example
1 parent afdd103 commit 00db446

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

javav2/example_code/inspector/src/main/java/com/java/inspector/HelloInspector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static void main(String[] args) {
5151
showUsageTotals(inspectorClient);
5252
System.out.println();
5353

54-
System.out.println("Hello Inspector example completed successfully!");
54+
System.out.println("The Hello Inspector example completed successfully!");
5555

5656
} catch (Inspector2Exception e) {
5757
System.err.println(" Error: " + e.getMessage());

javav2/example_code/inspector/src/main/java/com/java/inspector/InspectorScenario.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ public class InspectorScenario {
2323
public static void main(String[] args) {
2424

2525
InspectorActions inspectorActions = new InspectorActions();
26-
2726
Inspector2Client inspectorClient = Inspector2Client.builder()
2827
.region(Region.US_EAST_1)
2928
.build() ;
3029

31-
System.out.println("🔍 Amazon Inspector Basics Scenario");
30+
System.out.println("Amazon Inspector Basics Scenario");
3231
System.out.println(DASHES);
3332
System.out.println();
3433

@@ -71,7 +70,7 @@ by Amazon Web Services (AWS) that helps improve the security
7170
inspectorActions.enableInspector(inspectorClient, null);
7271

7372
} catch (Exception e) {
74-
System.err.println(" Could not create example filter: " + e.getMessage());
73+
System.err.println("Could not create an example filter: " + e.getMessage());
7574
}
7675
waitForInputToContinue(scanner);
7776

@@ -84,7 +83,7 @@ by Amazon Web Services (AWS) that helps improve the security
8483
inspectorActions.listFindings(inspectorClient, maxResults, null);
8584

8685
} catch (Exception e) {
87-
System.err.println(" Could not create example filter: " + e.getMessage());
86+
System.err.println("Could not create example filter: " + e.getMessage());
8887
}
8988
System.out.println();
9089
waitForInputToContinue(scanner);

0 commit comments

Comments
 (0)