File tree 4 files changed +16
-6
lines changed
aws-lambda-java-serialization
main/java/com/amazonaws/services/lambda/runtime/serialization/events/modules
test/java/com/amazonaws/services/lambda/runtime/serialization/events
4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change
1
+ ### February 22, 2023
2
+ ` 1.1.1 ` :
3
+ - Register ` JodaModule ` to JacksonFactory
4
+
1
5
### February 17, 2023
2
6
` 1.1.0 ` :
3
7
- Update ` jackson-databind ` dependency from 2.13.4.1 to 2.14.2
Original file line number Diff line number Diff line change 4
4
5
5
<groupId >com.amazonaws</groupId >
6
6
<artifactId >aws-lambda-java-serialization</artifactId >
7
- <version >1.1.0 </version >
7
+ <version >1.1.1 </version >
8
8
<packaging >jar</packaging >
9
9
10
10
<name >AWS Lambda Java Runtime Serialization</name >
45
45
<artifactId >jackson-databind</artifactId >
46
46
<version >${jackson.version} </version >
47
47
</dependency >
48
+ <dependency >
49
+ <groupId >com.fasterxml.jackson.datatype</groupId >
50
+ <artifactId >jackson-datatype-joda</artifactId >
51
+ <version >${jackson.version} </version >
52
+ </dependency >
48
53
<dependency >
49
54
<groupId >com.fasterxml.jackson.datatype</groupId >
50
55
<artifactId >jackson-datatype-jsr310</artifactId >
230
235
<pattern >com.google.gson</pattern >
231
236
<shadedPattern >${relocation.prefix} .com.google.gson</shadedPattern >
232
237
</relocation >
238
+ <relocation >
239
+ <pattern >org.joda.time</pattern >
240
+ <shadedPattern >${relocation.prefix} .org.joda.time</shadedPattern >
241
+ </relocation >
233
242
<relocation >
234
243
<pattern >org.json</pattern >
235
244
<shadedPattern >${relocation.prefix} .org.json</shadedPattern >
Original file line number Diff line number Diff line change 6
6
import com .fasterxml .jackson .core .JsonGenerator ;
7
7
import com .fasterxml .jackson .core .JsonParser ;
8
8
import com .fasterxml .jackson .core .JsonProcessingException ;
9
- import com .fasterxml .jackson .core .json .PackageVersion ;
10
9
import com .fasterxml .jackson .databind .DeserializationContext ;
11
10
import com .fasterxml .jackson .databind .JsonDeserializer ;
12
11
import com .fasterxml .jackson .databind .JsonSerializer ;
13
12
import com .fasterxml .jackson .databind .SerializerProvider ;
14
- import com .fasterxml .jackson .databind . module . SimpleModule ;
13
+ import com .fasterxml .jackson .datatype . joda . JodaModule ;
15
14
16
15
import java .io .IOException ;
17
16
18
17
/**
19
18
* Class that is used to load customer DateTime class
20
19
*/
21
- public class DateTimeModule extends SimpleModule {
20
+ public class DateTimeModule extends JodaModule {
22
21
23
22
/**
24
23
* creates a DateTimeModule using customer class loader to pull org.joda.time.DateTime
25
24
*/
26
25
public DateTimeModule (ClassLoader classLoader ) {
27
- super (PackageVersion .VERSION );
28
26
Class dateTimeClass = SerializeUtil .loadCustomerClass ("org.joda.time.DateTime" , classLoader );
29
27
this .addSerializer (dateTimeClass , getSerializer (dateTimeClass , classLoader ));
30
28
this .addDeserializer (dateTimeClass , getDeserializer (dateTimeClass ));
Original file line number Diff line number Diff line change 5
5
import com .amazonaws .services .lambda .runtime .events .*;
6
6
import com .amazonaws .services .lambda .runtime .serialization .PojoSerializer ;
7
7
import com .fasterxml .jackson .databind .ObjectMapper ;
8
- import org .junit .jupiter .api .Test ;
9
8
import org .junit .jupiter .params .ParameterizedTest ;
10
9
import org .junit .jupiter .params .provider .Arguments ;
11
10
import org .junit .jupiter .params .provider .MethodSource ;
You can’t perform that action at this time.
0 commit comments