Commit 4ee54d0
committed
Drop redundant no-arg constructors flagged by Codacy
Each inner class declared an empty public no-arg constructor as its only
constructor, which is redundant — the compiler generates an equivalent default
constructor (Codacy PMD UnnecessaryConstructor). Removed both; the grammar and
tests that instantiate them with `new ...Clause()` are unaffected. Verified
locally: full build + XmlTableTest pass on JDK 17; javap confirms the default
constructor is still synthesized.
Refs #2326
Signed-off-by: 付典 <fudianchn@gmail.com>1 parent 6752cc6 commit 4ee54d0
1 file changed
Lines changed: 0 additions & 4 deletions
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
| |||
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
84 | | - | |
85 | | - | |
86 | 82 | | |
87 | 83 | | |
88 | 84 | | |
| |||
0 commit comments