Multile code improvements: squid:S1118, squid:S1068

This commit is contained in:
George Kankava
2016-02-18 19:39:17 +04:00
parent 873199549c
commit 634e8ef153
4 changed files with 6 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ import java.util.Map;
/**
* A Java implementation of yeast. https://github.com/unshiftio/yeast
*/
public class Yeast {
public final class Yeast {
private static char[] alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".toCharArray();
private static int length = alphabet.length;
@@ -19,6 +19,8 @@ public class Yeast {
}
}
private Yeast () {}
private static int seed = 0;
private static String prev;