• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aspectran / aspectran / #5152

11 Apr 2026 01:09PM UTC coverage: 43.143% (+0.01%) from 43.129%
#5152

push

github

topframe
fix(utils/apon): prevent unassigned array parameters from being emitted as empty arrays

Updated `AponWriter` to check if an array-type parameter has been explicitly
assigned a value before serialization. Previously, unassigned array parameters
(like `methods` and `headers` in `JoinpointParameters`) were incorrectly
emitted as empty arrays `[]` because they were internally initialized with
empty lists during the `arraylize()` process.

Key changes:
- Modified `AponWriter.writeParameters` to incorporate `parameter.isAssigned()`
  checks for all array-type parameters (PARAMETERS, TEXT, and general types).
- Added unit tests in `AponWriterTest` to verify that unassigned array
  parameters are omitted (or written as null) while explicitly assigned
  empty arrays are correctly preserved as `[]`.

9 of 12 new or added lines in 1 file covered. (75.0%)

18633 of 43189 relevant lines covered (43.14%)

0.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.58
/utils/src/main/java/com/aspectran/utils/apon/AponWriter.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc