Skip to content

Commit 83048d5

Browse files
committed
Update LambdaEventSerializers#NESTED_CLASS_MAP keys data type
1 parent ffafb30 commit 83048d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-lambda-java-serialization/src/main/java/com/amazonaws/services/lambda/runtime/serialization/events/LambdaEventSerializers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public class LambdaEventSerializers {
158158
* If mixins are required for inner classes of an event, then those nested classes must be specified here.
159159
*/
160160
@SuppressWarnings("rawtypes")
161-
private static final Map<String, List<NestedClass>> NESTED_CLASS_MAP = Stream.of(
161+
private static final Map<String, List<? extends NestedClass>> NESTED_CLASS_MAP = Stream.of(
162162
new SimpleEntry<>("com.amazonaws.services.lambda.runtime.events.CodeCommitEvent",
163163
Arrays.asList(
164164
new NestedClass("com.amazonaws.services.lambda.runtime.events.CodeCommitEvent$Record"))),
@@ -244,7 +244,7 @@ public static <T> PojoSerializer<T> serializerFor(Class<T> eventClass, ClassLoad
244244
}
245245
// if event model has nested classes then load those classes and check if mixins apply
246246
if (NESTED_CLASS_MAP.containsKey(eventClass.getName())) {
247-
List<NestedClass> nestedClasses = NESTED_CLASS_MAP.get(eventClass.getName());
247+
List<? extends NestedClass> nestedClasses = NESTED_CLASS_MAP.get(eventClass.getName());
248248
for (NestedClass nestedClass: nestedClasses) {
249249
// if mixin exists for nested class then apply
250250
if (MIXIN_MAP.containsKey(nestedClass.className)) {

0 commit comments

Comments
 (0)