Moved to Java 8. Code cleanup.
[meviz.git] / src / main / java / eu / svjatoslav / meviz / htmlindexer / Utils.java
index 028995b..69c1c43 100755 (executable)
@@ -60,7 +60,7 @@ public class Utils {
     }
 
     public static HashSet<Layout> getLayouts() {
-        final HashSet<Layout> layouts = new HashSet<Layout>();
+        final HashSet<Layout> 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) {