Skip to content

Commit

Permalink
EDGPATRON-149 Fix sonar issues and remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh-kalyanasundaram committed Oct 17, 2024
1 parent 72cb196 commit b054399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/folio/edge/patron/PatronHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,10 @@ public void handleGetAllowedServicePoints(RoutingContext ctx) {
}

public void handleGetPatronRegistrationStatus(RoutingContext ctx) {
logger.debug("handleGetPatronRegistrationStatus:: Fetching patron registration");
String emailId = ctx.request().getParam(PARAM_EMAIL_ID);
logger.debug("handleGetPatronRegistrationStatus:: Fetching patron details by emailId {}", emailId);
if(StringUtils.isNullOrEmpty(emailId)) {
logger.warn("handleGetPatronRegistrationStatus:: Missing or empty emailId");
ctx.response()
.setStatusCode(400)
.putHeader(HttpHeaders.CONTENT_TYPE, APPLICATION_JSON)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@
import java.nio.charset.StandardCharsets;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.Currency;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
Expand Down

0 comments on commit b054399

Please sign in to comment.