Static code analysis results for Java code quality and bug detection
Total issues found: 73
Errors: 5
Warnings: 68
JdkObsolete: 17 occurrences
JavaUtilDate: 9 occurrences
SynchronizeOnNonFinalField: 8 occurrences
EmptyBlockTag: 7 occurrences
Replace:
Hashtable with LinkedHashMap (17 occurrences)Vector with ArrayList (3 occurrences)StringBuffer with StringBuilder (6 occurrences)LocalDateTime.now(ZoneId.systemDefault())private static final ThreadLocal<SimpleDateFormat> dateFormat = ThreadLocal.withInitial(() -> new SimpleDateFormat("MMMM dd, yyyy"));List<String> = Splitter.on(Pattern.compile(delimiter)).splitToList(input);new InputStreamReader(stream, StandardCharsets.UTF_8)hashCode() method for TartanHome class to complement the equals() methodMap.of() or ImmutableMap.of()DateFormat by using ThreadLocalFutureReturnValueIgnored to prevent potential lost exceptionsHashtable → LinkedHashMapVector → ArrayListStringBuffer → StringBuilderjava.util.Date to java.time APILocalDateTime.now() callsString.split() with more predictable alternatives