Skip to content

Commit

Permalink
Merge pull request #549 from prasanth08/main
Browse files Browse the repository at this point in the history
Refactor - Remove unused imports, use method reference, reordering modifiers
  • Loading branch information
juliensadaoui authored Sep 13, 2022
2 parents 6951600 + e223401 commit fc1da0c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import static java.net.URLDecoder.decode;

import java.io.File;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Paths;
import javax.servlet.*;
Expand All @@ -15,12 +14,10 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.core.env.Profiles;
import org.springframework.util.CollectionUtils;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
import tech.jhipster.config.JHipsterConstants;
import tech.jhipster.config.JHipsterProperties;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
public final class SecurityUtils {

public static final String CLAIMS_NAMESPACE = "https://www.jhipster.tech/";
public static final String CLAIMS_NAMESPACE = "https://www.jhipster.tech/";

private SecurityUtils() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) throws IO
if (log.isDebugEnabled()) {
events.forEach(event -> log.debug("Event detected: " + event.kind().name() + ", Updated File: " + event.context()));
}
Collection<Integer> activeList = fileList.stream().map(entry -> getHashValue(entry)).collect(Collectors.toList());
Collection<Integer> activeList = fileList.stream().map(this::getHashValue).collect(Collectors.toList());
if (!hashList.containsAll(activeList)) {
log.debug("File system updated. Hashed content matching failed");
hashList.clear();
Expand Down

0 comments on commit fc1da0c

Please sign in to comment.