Skip to content

Commit

Permalink
- nosonar sha1
Browse files Browse the repository at this point in the history
  • Loading branch information
psmagin committed Sep 9, 2024
1 parent b5584ab commit e77e625
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/folio/search/utils/ShaUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
public class ShaUtils {

public static String sha(String... input) {
return sha1Hex(Arrays.stream(input)
var value = Arrays.stream(input)
.map(s -> s == null ? "" : s)
.collect(Collectors.joining("|")));
.collect(Collectors.joining("|"));
return sha1Hex(value); // NOSONAR
}
}

0 comments on commit e77e625

Please sign in to comment.