Commit 5e2b332
Markus Paulsen
fix: align utility-class constructors and unbreak the build
The Copilot Autofix commit gave ClassMemberAccessor a throwing constructor but
left it unformatted, so spotless:check (the first Build step) failed and every
downstream job skipped. It also used a fully qualified Messages reference rather
than the imported short form the rest of the code base uses.
This reformats ClassMemberAccessor to the convention (import Messages, literal
class name) and applies the same convention to the two utility classes Copilot
flagged, Phobos and Localisation, which still threw a generic IllegalStateException
with a hard-coded English message. All three now throw a SecurityException with
Messages.localized("security.general.utility.initialization", <ClassName>),
matching FileHandlerConstants and the other utility classes, so the failure type
and message are consistent and locale-independent.1 parent 373d47e commit 5e2b332
3 files changed
Lines changed: 217 additions & 214 deletions
File tree
- src/main/java/de/tum/cit/ase/ares/api
- localization
- phobos
- util
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments