Community
Participate
Working Groups
Here are some planned cleanups: - "valueOf() rather than instantiation" (Bug 572234) - "Map.entrySet() rather than Map.keySet() and value search" - "Int primitive rather than wrapper" - "Remove unchecked exceptions from throws clause"
Add to that: Replace system.getProperties() calls with direct Java methods where possible
Also: Replace StringBuffer with StringBuilder for local accesses.
I plan another cleanup: Do/while rather than while (Bug 572574) Given: boolean isInitedToTrue= true; while (isInitedToTrue) { if (i > 100) { isInitedToTrue= false; } i *= 2; } When: Clean up the code enabling "Do/while rather than while"... Then: boolean isInitedToTrue= true; do { if (i > 100) { isInitedToTrue= false; } i *= 2; } while (isInitedToTrue);
I would like to try to implement a helper quickfix to resolve reliance on platform encoding to reuse a single constant for that - in case such a quickfix can be accepted at all. see Bug 179119
"Int primitive rather than wrapper" cleanup is merged. Now I plan to extends this rule to all the primitive types to release a complete feature for Eclipse 2021-06.
Closing it for 4.20. Any new clean ups should go in 4.21 now.