mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Fix all IntelliJ warnings in Java production code except for bogus spelling warnings and warnings about unused public methods. Also fix some warnings emitted by Code->Inspect Code. Changes made: - use text block instead of string concatenation - extract method to avoid code duplication - use switch expression - fix Javadoc syntax and spelling - fix spelling in comment - increase class visibility to match visibility of use site - delete overriding method with same implementation - use String.isEmpty() and StringBuilder.isEmpty() - add @Serial annotation - make field final - remove unused field - remove unused private method - remove exceptions that aren't thrown from throws clause - insert non-null assertion - annotate overriding method with @Nonnull - suppress warning - delete unused class (WriteAuxiliarySlotNode) - add final modifier - remove unused error message - repeat @Nullable modifier in overriding method - remove never thrown exception from throws clause - remove redundant suppression