Skip to content

chore: remove unused Pattern field from DatabaseDefinitionService - #298

Open
HuiJun wants to merge 1 commit into
developfrom
chore/remove-unused-pattern-field
Open

HuiJun wants to merge 1 commit into
developfrom
chore/remove-unused-pattern-field

Conversation

@HuiJun

@HuiJun HuiJun commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Removes private static final Pattern pattern = Pattern.compile("\\$\\{(.+?)\\}") from DatabaseDefinitionService and the java.util.regex.Pattern import that existed only for it.

Evidence nothing depends on it

  • The field is private static, so only this class can reference it by name, and the class has no other occurrence of pattern or Pattern.
  • The only reflective field access in the repository is getClass().getDeclaredFields() in data/.../domains/global/Base.java, which runs on entity subclasses of Base, not on this service.

Verification

  • ./gradlew :rdb:compileJava :rdb:test passes.

Code Reaper opened this PR for Jason
Implemented in session Find and remove dead code in exec-mms
Review with Devin · Open in Devin Desktop


Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant