Skip to content

Refactor PetClinic low-risk cleanup batch - #282

Open
formatunitedandreas-code wants to merge 66 commits into
spring-petclinic:mainfrom
formatunitedandreas-code:threshold-governed-refactor-demo-3
Open

Refactor PetClinic low-risk cleanup batch#282
formatunitedandreas-code wants to merge 66 commits into
spring-petclinic:mainfrom
formatunitedandreas-code:threshold-governed-refactor-demo-3

Conversation

@formatunitedandreas-code

@formatunitedandreas-code formatunitedandreas-code commented Jul 12, 2026

Copy link
Copy Markdown

Refactor PetClinic low-risk cleanup batch

Summary

This PR applies a sequence of small readability refactorings across PetClinic
controllers, validators, service/model helpers, and related low-risk paths.

The changes focus on:

  • extracting small private helpers for repeated local logic
  • replacing repeated view/model/path literals with local constants
  • simplifying narrow branch/readability cases without changing route, view,
    validation, repository, or persistence semantics

Validation

Local validation on Windows with Java 17:

$env:JAVA_HOME='C:\Program Files\Java\jdk-17'
.\mvnw.cmd test

Result:

  • BUILD SUCCESS
  • Tests run: 75
  • Failures: 0
  • Errors: 0
  • Skipped: 0

Current CI State

GitHub Actions for this fork PR currently require maintainer approval before
jobs run:

  • Java CI for Pull Request: action_required
  • Java CI (minimal tests): action_required

Scope Notes

  • No feature work is intended.
  • No public API change is intended.
  • No request mapping, returned view name, model attribute name, validation
    message/code, repository query, or persistence behavior change is intended.
  • No release or deployment is part of this PR.

Non-Claims

This PR does not claim production readiness, security certification, compliance
certification, or upstream acceptance.

PR #1
branch threshold-governed-refactor-demo
local validation: Maven test BUILD SUCCESS
CI: all visible checks passed
non-claims: no upstream interaction, no release, no deploy, no public readiness/correctness/security/compliance claim
Local validation passed: git diff --check and mvnw test (BUILD SUCCESS). Merge of follow-up low-risk cleanup commits on threshold-governed-refactor-demo.
Split main CI into an unconditional Maven verify step and a Sonar analysis step gated on SONAR_TOKEN. This keeps the owned fork main workflow green when SonarCloud secrets are not configured.
PR #5\nbranch threshold-governed-refactor-demo-3\nlocal validation: Maven test BUILD SUCCESS\nCI: all visible checks passed\nnon-claims: no upstream interaction, no release, no deploy, no public readiness/correctness/security/compliance claim
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