X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fmeviz%2Fhtmlindexer%2FUtils.java;h=69c1c43765aa1832d68f9c46e4296afe4902f5b4;hb=891ecca562e87bb5d0ab1e49eea566c15fe91c6d;hp=028995b1b176818cb3e9db1c25bb885a5a5cccc9;hpb=0c8606b2b2bee4d93f383653c283da116ad7fdee;p=meviz.git diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java index 028995b..69c1c43 100755 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/Utils.java @@ -60,7 +60,7 @@ public class Utils { } public static HashSet getLayouts() { - final HashSet layouts = new HashSet(); + final HashSet layouts = new HashSet<>(); layouts.add(new MixedLayout()); return layouts; } @@ -76,13 +76,9 @@ public class Utils { crc.update(b); // note use crc.value, not crc.getValue() - final String hex = Integer.toHexString((int) crc.getValue()) - .toUpperCase(); - - // System.out.println("Input string: " + input); - // System.out.println("Result: " + hex); - return hex; + return Integer.toHexString((int) crc.getValue()) + .toUpperCase(); } public static File getThumbnailsDirectory(final File directoryToIndex) {