Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ experimental/aws-lambda-java-profiler/integration_tests/helloworld/bin
!experimental/aws-lambda-java-profiler/extension/gradle/wrapper/*.jar
/scratch/
.vscode
.kiro
build
5 changes: 5 additions & 0 deletions aws-lambda-java-serialization/RELEASE.CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### March 11, 2026
`1.3.0`:
- Update `jackson-databind` dependency from 2.15.4 to 2.18.6
- Replace deprecated `PropertyNamingStrategy.PascalCaseStrategy` with `PropertyNamingStrategies.UpperCamelCaseStrategy`

### December 16, 2025
`1.2.0`:
- Update `jackson-databind` dependency from 2.14.2 to 2.15.4
Expand Down
4 changes: 2 additions & 2 deletions aws-lambda-java-serialization/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-serialization</artifactId>
<version>1.2.0</version>
<version>1.3.0</version>
<packaging>jar</packaging>

<name>AWS Lambda Java Runtime Serialization</name>
Expand Down Expand Up @@ -32,7 +32,7 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<relocation.prefix>com.amazonaws.lambda.thirdparty</relocation.prefix>
<jackson.version>2.15.4</jackson.version>
<jackson.version>2.18.6</jackson.version>
<gson.version>2.10.1</gson.version>
<json.version>20231013</json.version>
<owasp.version>7.3.2</owasp.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.amazonaws.services.lambda.runtime.serialization.PojoSerializer;
import com.amazonaws.services.lambda.runtime.serialization.util.ReflectUtil;
import com.amazonaws.services.lambda.runtime.serialization.util.SerializeUtil;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.amazonaws.services.lambda.runtime.serialization.events.modules.DateModule;
import com.amazonaws.services.lambda.runtime.serialization.events.modules.DateTimeModule;
Expand Down Expand Up @@ -91,7 +92,7 @@ public class LambdaEventSerializers {
new SimpleEntry<>("com.amazonaws.services.s3.event.S3EventNotification", new S3EventSerializer<>()),
new SimpleEntry<>("com.amazonaws.services.lambda.runtime.events.models.s3.S3EventNotification", new S3EventSerializer<>()),
new SimpleEntry<>("com.amazonaws.services.lambda.runtime.events.S3Event", new S3EventSerializer<>()))
.collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue));
.collect(Collectors.toMap(e -> e.getKey(), e -> e.getValue()));

/**
* Maps supported event classes to mixin classes with Jackson annotations.
Expand Down Expand Up @@ -153,7 +154,7 @@ public class LambdaEventSerializers {
SQSEventMixin.class),
new SimpleEntry<>("com.amazonaws.services.lambda.runtime.events.SQSEvent$SQSMessage",
SQSEventMixin.SQSMessageMixin.class))
.collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue));
.collect(Collectors.toMap(e -> e.getKey(), e -> e.getValue()));

/**
* If mixins are required for inner classes of an event, then those nested classes must be specified here.
Expand Down Expand Up @@ -208,19 +209,19 @@ public class LambdaEventSerializers {
new SimpleEntry<>("com.amazonaws.services.lambda.runtime.events.SQSEvent",
Arrays.asList(
new NestedClass("com.amazonaws.services.lambda.runtime.events.SQSEvent$SQSMessage"))))
.collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue));
.collect(Collectors.toMap(e -> e.getKey(), e -> e.getValue()));

/**
* If event requires a naming strategy. For example, when someone names the getter method getSNS and the setter
* method setSns, for some magical reasons, using both mixins and a naming strategy works
*/
private static final Map<String, PropertyNamingStrategy> NAMING_STRATEGY_MAP = Stream.of(
new SimpleEntry<>("com.amazonaws.services.lambda.runtime.events.SNSEvent",
new PropertyNamingStrategy.PascalCaseStrategy()),
new PropertyNamingStrategies.UpperCamelCaseStrategy()),
new SimpleEntry<>("com.amazonaws.services.lambda.runtime.events.ConnectEvent$Queue",
new PropertyNamingStrategy.PascalCaseStrategy())
new PropertyNamingStrategies.UpperCamelCaseStrategy())
)
.collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue));
.collect(Collectors.toMap(e -> e.getKey(), e -> e.getValue()));

/**
* Returns whether the class name is a Lambda supported event model.
Expand Down
Loading