-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: reverse dependency between jooq and core module #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,8 @@ | |
| import de.rwth.idsg.steve.repository.dto.DbVersion; | ||
| import de.rwth.idsg.steve.web.dto.Statistics; | ||
|
|
||
| import java.util.Optional; | ||
|
|
||
| /** | ||
| * @author Sevket Goekay <sevketgokay@gmail.com> | ||
| * @since 19.08.2014 | ||
|
|
@@ -35,5 +37,5 @@ public interface GenericRepository { | |
| * Returns database version of SteVe and last database update timestamp | ||
| * | ||
| */ | ||
| DbVersion getDBVersion(); | ||
| Optional<DbVersion> getDBVersion(); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainBreaking API: verify all call sites and implementors handle Optional. Search for invocations that still expect DbVersion and adjust to Optional usage to avoid NPEs or compile errors. Run: 🏁 Script executed: #!/bin/bash
# Calls
rg -nP '\bgetDBVersion\s*\(' -C2
# Implementations
rg -nP 'class\s+\w+\s+implements\s+GenericRepository\b' -C2Length of output: 2487 Unwrap Optional in AboutSettingsController#getAbout model.addAttribute("db", genericRepository.getDBVersion());to model.addAttribute("db", genericRepository.getDBVersion().orElse(null));🤖 Prompt for AI Agents |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong placeholder content: using ocppTagPk where idTag is expected
Message says idTag but formats with ocppTagPk (123). Use the actual idTag to keep user-facing text correct.
📝 Committable suggestion
🤖 Prompt for AI Agents