You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "José Contreras (Jira)" <ji...@apache.org> on 2021/09/30 20:33:00 UTC
[jira] [Created] (NETBEANS-6081) Cleaning to the 'enterprise'
module
José Contreras created NETBEANS-6081:
----------------------------------------
Summary: Cleaning to the 'enterprise' module
Key: NETBEANS-6081
URL: https://issues.apache.org/jira/browse/NETBEANS-6081
Project: NetBeans
Issue Type: Improvement
Components: javaee - Code
Affects Versions: 12.5
Environment: 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)
Reporter: José Contreras
Assignee: José Contreras
Fix For: 12.6
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:
- Remove unnecessary boxing
- Remove unnecessary unboxing
- Remove boxing of already boxed value
- Remove creating new Boolean
Cleaning enterprise module part 2:
- Remove import From java.lang Package
- Remove import From The Same Package
Cleaning enterprise module part 3:
- 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
- Unnecessary temporary during conversion from String
- Unnecessary temporary during conversion to String
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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists