Skip to content

Commit

Permalink
Checkstyle corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
adamg-hmcts committed Dec 24, 2024
1 parent 02984fc commit fb92c22
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ public AboutToStartOrSubmitResponse<CaseData, State> aboutToSubmit(final CaseDet
private void prepareServiceRequestForApplicationPayment(CaseData data, long caseId) {
Application application = data.getApplication();

String serviceRequest = paymentSetupService.createApplicationFeeServiceRequest(
data, caseId
);
String serviceRequest = paymentSetupService.createApplicationFeeServiceRequest(data, caseId);

application.setApplicationFeeServiceRequestReference(serviceRequest);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import java.util.List;

import static uk.gov.hmcts.divorce.common.ccd.CcdPageConfiguration.NEVER_SHOW;
import static uk.gov.hmcts.divorce.controller.PaymentCallbackController.PAYMENT_UPDATE_PATH;
import static uk.gov.hmcts.divorce.divorcecase.model.State.Applicant2Approved;
import static uk.gov.hmcts.divorce.divorcecase.model.State.AwaitingPayment;
import static uk.gov.hmcts.divorce.divorcecase.model.State.Draft;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,10 @@ public void handleCallback(PaymentCallbackDto paymentCallback) {
}

private String paymentMadeEvent(State state) {
switch(state) {
case AwaitingPayment:
return CITIZEN_PAYMENT_MADE;
case AwaitingFinalOrderPayment:
return RESPONDENT_FINAL_ORDER_PAYMENT_MADE;
default:
return null;
}
return switch (state) {
case AwaitingPayment -> CITIZEN_PAYMENT_MADE;
case AwaitingFinalOrderPayment -> RESPONDENT_FINAL_ORDER_PAYMENT_MADE;
default -> null;
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import feign.FeignException;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import uk.gov.hmcts.ccd.sdk.api.CaseDetails;
import uk.gov.hmcts.ccd.sdk.api.callback.AboutToStartOrSubmitResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package uk.gov.hmcts.divorce.solicitor.service.task;

import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import uk.gov.hmcts.ccd.sdk.api.CaseDetails;
import uk.gov.hmcts.ccd.sdk.type.OrderSummary;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import uk.gov.hmcts.ccd.sdk.api.CCDConfig;
import uk.gov.hmcts.ccd.sdk.api.CaseDetails;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import static uk.gov.hmcts.ccd.sdk.type.YesOrNo.NO;
import static uk.gov.hmcts.ccd.sdk.type.YesOrNo.YES;
import static uk.gov.hmcts.divorce.citizen.event.CitizenSubmitApplication.CITIZEN_SUBMIT;
import static uk.gov.hmcts.divorce.controller.PaymentCallbackController.PAYMENT_UPDATE_PATH;
import static uk.gov.hmcts.divorce.divorcecase.model.ApplicantPrayer.DissolveDivorce.DISSOLVE_DIVORCE;
import static uk.gov.hmcts.divorce.divorcecase.model.ContactDetailsType.PRIVATE;
import static uk.gov.hmcts.divorce.divorcecase.model.DivorceOrDissolution.DIVORCE;
Expand Down

0 comments on commit fb92c22

Please sign in to comment.