Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
12.5
-
Fedora 34 (Workstation Edition)
AMD® Ryzen 7 5800x
62.7 GiB
SSD Samsung 983 ZET
JDK VM Zulu11.50+19-CA (build 11.0.12+7-LTS, mixed mode)
Description
I did some cleaning to the 'enterprise' module with the 'Inspect & Transform' tool. I divided the cleaning in 8 parts/commits.
Cleaning enterprise module part 1: (MERGED)
- Remove unnecessary boxing
- Remove unnecessary unboxing
- Remove boxing of already boxed value
- Remove creating new Boolean
Cleaning enterprise module part 2: (MERGED)
- Remove import From java.lang Package
- Remove import From The Same Package
Cleaning enterprise module part 3: (MERGED)
- Remove redundant conditional expressions
- Remove empty statements (semicolon)
Cleaning enterprise module part 4:
- Replace length one String in String.indexOf ("c" -> 'c')
- Remove redundant String.toString()
- Use String concatenation in StringBuilder.append
- Remove String constructor
- Replace useless use of StringBuffer with StringBuilder
Cleaning enterprise module part 5:
- Converts try finally block to try-with-resources when possible
Cleaning enterprise module part 6:
- Remove String concatenation in logger
- Logger declaration is not static final
- Remove unnecessary Throwable.initCause
Cleaning enterprise module part 7:
- Join catch sections using multicatch
Cleaning enterprise module part 8:
- Add @Override Annotation