-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format and Clean up Java source code as defined in ADR-029
Done by Eclipse's 'Source Clean Up' function with the options enabled: - Change non static accesses to static members using declaring type - Change indirect accesses to static members to direct accesses (accesses through subtypes) - Convert control statement bodies to block - Convert to enhanced 'for' loops only if the loop variable is used - Convert to enhanced 'for' loops - Convert if/else if/else chain to switch - Add elements in collections without loop - Add final modifier to private fields - Use instanceof keyword instead of Class.isInstance() - Exit loop earlier - Make inner classes static where possible - Convert StringBuffer to StringBuilder for local variables - Use String.replace() instead of String.replaceAll() when possible - String.isBlank() rather than String.strip().isEmpty() - Use lazy logical operator (&& and ||) - Primitive comparison - Primitive parsing - Primitive serialization - Use boolean literals instead of Boolean.TRUE/FALSE when used as a primitive - Remove unused imports - Add missing '@OverRide' annotations - Add missing '@OverRide' annotations to implementations of interface methods - Add missing '@deprecated' annotations - Remove unnecessary casts - Remove redundant modifiers - Remove redundant semicolons - Implicit comparator - Remove unnecessary array creation for varargs - Create array with curly - Remove variable assignment before return - Convert loop into if - Remove unnecessary '$NON-NLS$' tags - Organize imports - Format source code - Remove trailing white spaces on all lines - Remove redundant String.substring() parameter - Use Arrays.fill() when possible - Remove overridden assignment - Remove redundant super() call in constructor - Remove unreachable block - Operate on Maps directly - Initialize collection at creation - Initialize map at creation - Avoid Object.equals() or String.equalsIgnoreCase() on null objects - Compare to zero - Pull out a duplicate 'if' from an if/else - Use pattern matching for instanceof - Convert to switch expression where possible - Simplify lambda expression and method reference syntax - Use Comparator.comparing() - Use String.join() - Use diamond operator
- Loading branch information
Showing
18 changed files
with
181 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
primeui-tester/src/main/java/com/axonivy/ivy/webtest/primeui/widget/Dialog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.