Skip to content

Commit 55b28ae

Browse files
committed
adding some Java 17 code to the example.
1 parent f5d770e commit 55b28ae

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

example/software/ExampleFunction/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
<artifactId>maven-compiler-plugin</artifactId>
7979
<version>3.8.1</version>
8080
<configuration>
81-
<source>1.8</source>
82-
<target>1.8</target>
81+
<source>17</source>
82+
<target>17</target>
8383
</configuration>
8484
</plugin>
8585
</plugins>

example/software/ExampleFunction/src/main/java/example/ExampleDynamoDbHandler.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEv
4949
.tableName(TABLE_NAME)
5050
.item(itemAttributes)
5151
.build());
52-
return response.withBody("successful").withStatusCode(200);
52+
return response.withBody("""
53+
successful
54+
multi-line
55+
response""").withStatusCode(200);
5356
} catch (DynamoDbException e) {
5457
context.getLogger().log(e.getMessage());
5558
return response.withBody("error").withStatusCode(500);

0 commit comments

Comments
 (0)