Skip to content

Commit

Permalink
Merge pull request #326 from catenax-ng/feature/TRI-XXX-code-smells-a…
Browse files Browse the repository at this point in the history
…djuststments

feat(impl):[TRI-XXX] adjustments for smells
  • Loading branch information
ds-ext-abugajewski authored May 12, 2023
2 parents 574a297 + 880e50c commit 4a31fde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public TrustedPortConfiguration(@Value("${server.port:8080}") final String serve
}

@Bean
public WebServerFactoryCustomizer<?> servletContainer() {
public WebServerFactoryCustomizer<TomcatServletWebServerFactory> servletContainer() {

final Connector[] additionalConnectors = this.additionalConnector();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<MultiTransferJob> optJob = get(jobId);
return optJob.isPresent() && optJob.get().getJob().getState() == state;
return optJob.isPresent() && optJob.get().getJob().getState().equals(state);
}

}

0 comments on commit 4a31fde

Please sign in to comment.