Skip to content

Commit

Permalink
Removed extra semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj-Shah1 committed Oct 16, 2023
1 parent 491cff0 commit 32264e6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,16 @@ public GetEventDetailsFormatterDto parseResponse(String responseBody) {
}

JsonNode recordsNode = rootNode.get("compositeResponse").get(0).get("body").get("records");
;

EventEntity eventEntity = new EventEntity();
for (JsonNode recordNode : recordsNode) {
ObjectMapper mapper = new ObjectMapper();
mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
SalesforceGetEventsListDto salesforceGetEventsListDto = mapper.convertValue(recordNode,
SalesforceGetEventsListDto.class);
eventEntity = salesforceGetEventsListDto.eventEntity();
if (recordsNode.size() > 0) {
for (JsonNode recordNode : recordsNode) {
ObjectMapper mapper = new ObjectMapper();
mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
SalesforceGetEventsListDto salesforceGetEventsListDto = mapper.convertValue(recordNode,
SalesforceGetEventsListDto.class);
eventEntity = salesforceGetEventsListDto.eventEntity();
}
}

GetEventDetailsFormatterDto getEventDetailsFormatterDto = new GetEventDetailsFormatterDto();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public GetEventsListFormatterDto parseResponse(String responseBody) {
}

JsonNode recordsNode = rootNode.get("compositeResponse").get(0).get("body").get("records");
;

for (JsonNode recordNode : recordsNode) {
ObjectMapper mapper = new ObjectMapper();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,12 @@ public GetTaskDetailsFormatterDto parseResponse(String responseBody) {
}

JsonNode recordsNode = rootNode.get("compositeResponse").get(0).get("body").get("records");
;

TaskEntity taskEntity = new TaskEntity();
if (recordsNode.size() > 0) {
ObjectMapper mapper = new ObjectMapper();
mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
for (JsonNode recordNode : recordsNode) {
ObjectMapper mapper = new ObjectMapper();
mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
SalesforceGetTasksListDto salesforceGetTasksListDto = mapper.convertValue(recordNode,
SalesforceGetTasksListDto.class);
taskEntity = salesforceGetTasksListDto.taskEntity();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public GetTasksListFormatterDto parseResponse(String responseBody) {
}

JsonNode recordsNode = rootNode.get("compositeResponse").get(0).get("body").get("records");
;

for (JsonNode recordNode : recordsNode) {
ObjectMapper mapper = new ObjectMapper();
Expand Down

0 comments on commit 32264e6

Please sign in to comment.