test: add InvestmentRollup helper for testing automation loop#4
Conversation
4923ce3 to
5276c56
Compare
|
@OpenHands /autoreview |
|
I'm on it! ak684 can track my progress at all-hands.dev |
|
@ak684 @aking13 — first-pass review below. SummaryThis PR adds a new 🔒 Security (1 issue)
🐛 Bugs (3 issues)
🧹 Cleanup (1 issue)
Missing
See inline comments for details on each issue. |
Summary of Work CompletedI performed an automated first-pass code review ( What was done:
Compliance with autoreview skill requirements:
|
|
@OpenHands /autofix |
|
I'm on it! ak684 can track my progress at all-hands.dev |
- Fix NPE risk: flip .equals() to use known non-null category (lines 26, 44) - Fix off-by-one: change .limit(limit + 1) to .limit(limit) (line 48) - Fix SQL injection: use ? placeholders instead of string interpolation (line 62) - Extract magic number 100 to DEFAULT_TOP_LIMIT constant (line 41) Co-authored-by: openhands <openhands@all-hands.dev>
|
@ak684 @aking13 — fixes pushed, all addressable threads resolved.
|
Summary of Work CompletedThe Workflow Compliance
Changes Made (single commit
|
| Review Issue | Fix |
|---|---|
| 🐛 NPE on line 26 | Flipped to category.equals(company.get("category")) |
| 🐛 NPE on line 44 | Same flip in stream filter |
| 🐛 Off-by-one on line 48 | .limit(limit + 1) → .limit(limit) |
| 🔒 SQL injection on line 62 | Replaced string interpolation with ? placeholders via Collections.nCopies |
| 🧹 Magic number on line 41 | Extracted to private static final int DEFAULT_TOP_LIMIT = 100 |
Conciseness Check
The changes are minimal and focused — only the single file flagged in reviews was modified, and only the lines called out in the review comments were changed. The Javadoc line-wrapping adjustments were necessary to stay within the 80-character line limit after the code changes. The unused Collectors import that was accidentally added was caught and removed before committing. No extraneous changes were introduced.
No description provided.