Skip to content

Commit 57c459f

Browse files
committed
avniproject/avni-server#825 | Avoid need for NoArgsConstructor for DTO entities
1 parent 6ea36a7 commit 57c459f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

avni/src/main/java/org/avni_integration_service/avni/domain/SendMessageResponse.java

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ public class SendMessageResponse {
55
MessageDeliveryStatus messageDeliveryStatus;
66
String errorMessage;
77

8-
public SendMessageResponse() {
9-
}
10-
118
public SendMessageResponse(MessageDeliveryStatus messageDeliveryStatus, String errorMessage) {
129
this.messageDeliveryStatus = messageDeliveryStatus;
1310
this.errorMessage = errorMessage;

util/src/main/java/org/avni_integration_service/util/ObjectJsonMapper.java

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import com.fasterxml.jackson.databind.ObjectMapper;
77
import com.fasterxml.jackson.databind.SerializationFeature;
88
import com.fasterxml.jackson.datatype.joda.JodaModule;
9+
import com.fasterxml.jackson.module.paramnames.ParameterNamesModule;
910
import org.apache.log4j.Logger;
1011

1112
import java.io.File;
@@ -20,6 +21,7 @@ public class ObjectJsonMapper {
2021
private static final Logger logger = Logger.getLogger(ObjectJsonMapper.class);
2122
public static final ObjectMapper objectMapper = new ObjectMapper()
2223
.registerModule(new JodaModule())
24+
.registerModule(new ParameterNamesModule())
2325
.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false)
2426
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
2527
.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);

0 commit comments

Comments
 (0)