From 880e50c0bb9568266e6c7f76278b303266c59a2b Mon Sep 17 00:00:00 2001 From: "Krzysztof Massalski (Extern)" Date: Fri, 12 May 2023 15:11:01 +0200 Subject: [PATCH] feat(impl):[TRI-XXX] adjustments for smells --- .../tractusx/irs/configuration/TrustedPortConfiguration.java | 2 +- .../tractusx/irs/connector/job/PersistentJobStore.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/irs-api/src/main/java/org/eclipse/tractusx/irs/configuration/TrustedPortConfiguration.java b/irs-api/src/main/java/org/eclipse/tractusx/irs/configuration/TrustedPortConfiguration.java index 3ca7652b40..1b0f81f44d 100644 --- a/irs-api/src/main/java/org/eclipse/tractusx/irs/configuration/TrustedPortConfiguration.java +++ b/irs-api/src/main/java/org/eclipse/tractusx/irs/configuration/TrustedPortConfiguration.java @@ -58,7 +58,7 @@ public TrustedPortConfiguration(@Value("${server.port:8080}") final String serve } @Bean - public WebServerFactoryCustomizer servletContainer() { + public WebServerFactoryCustomizer servletContainer() { final Connector[] additionalConnectors = this.additionalConnector(); diff --git a/irs-api/src/main/java/org/eclipse/tractusx/irs/connector/job/PersistentJobStore.java b/irs-api/src/main/java/org/eclipse/tractusx/irs/connector/job/PersistentJobStore.java index 30ca2690ad..5b228839fc 100644 --- a/irs-api/src/main/java/org/eclipse/tractusx/irs/connector/job/PersistentJobStore.java +++ b/irs-api/src/main/java/org/eclipse/tractusx/irs/connector/job/PersistentJobStore.java @@ -130,9 +130,9 @@ private String toBlobId(final String jobId) { return JOB_PREFIX + jobId; } - private Boolean isLastStateSameAsCurrentState(final String jobId, final JobState state) { + private boolean isLastStateSameAsCurrentState(final String jobId, final JobState state) { final Optional optJob = get(jobId); - return optJob.isPresent() && optJob.get().getJob().getState() == state; + return optJob.isPresent() && optJob.get().getJob().getState().equals(state); } }