= cold cleanup

* using lambda if possible (we are already building in Java8)
  * using diamond when new generic instance
  * remove used improt
This commit is contained in:
zavakid
2020-09-17 17:46:20 +08:00
parent df60eda679
commit e7658879bc
133 changed files with 990 additions and 1558 deletions
@@ -24,7 +24,7 @@ public class SecurityUtil {
private static char[] digits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c',
'd', 'e', 'f' };
private static Map<Character, Integer> rDigits = new HashMap<Character, Integer>(16);
private static Map<Character, Integer> rDigits = new HashMap<>(16);
static {
for (int i = 0; i < digits.length; ++i) {
rDigits.put(digits[i], i);