Skip to content

Commit 2e1b87e

Browse files
committed
updated validation yaml
1 parent 358c6bb commit 2e1b87e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

javav2/example_code/location/src/main/java/com/example/location/scenario/LocationScenario.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ public static void main(String[] args) {
4343
deviceId - The ID of the device (e.g., "iPhone-112356").
4444
""";
4545

46-
// if (args.length != 7) {
47-
// logger.info(usage);
48-
// return;
49-
// }
50-
51-
String mapName = "AWSMap101" ; //args[0];
52-
String keyName = "Key101" ; //args[1];
53-
String collectionName = "Collection101" ; //args[2];
54-
String geoId = "geoId101"; //args[4];
55-
String trackerName = "geoTracker101" ; // args[5];
56-
String calculatorName = "AWSRouteCalc101c" ; //args[6];
57-
String deviceId = "iPhone-112356" ; //args[7];
46+
if (args.length != 7) {
47+
logger.info(usage);
48+
return;
49+
}
50+
51+
String mapName = args[0];
52+
String keyName = args[1];
53+
String collectionName = args[2];
54+
String geoId = args[4];
55+
String trackerName = args[5];
56+
String calculatorName = args[6];
57+
String deviceId = args[7];
5858

5959
logger.info("""
6060
AWS Location Service is a fully managed service offered by Amazon Web Services (AWS) that

0 commit comments

Comments
 (0)