Skip to content

Avoid mutating paths in EAR module getters - #561

Open
efegokdemir wants to merge 1 commit into
apache:masterfrom
efegokdemir:codex/issue-516-pure-module-getters
Open

efegokdemir wants to merge 1 commit into
apache:masterfrom
efegokdemir:codex/issue-516-pure-module-getters

Conversation

@efegokdemir

Copy link
Copy Markdown

Summary

Keep AbstractEarModule#getBundleDir() and getLibDir() side-effect free. The getters still return normalized archive paths, but no longer overwrite the configured values.

Added regression coverage proving repeated access does not mutate either configured field.

Fixes #516

Testing

  • mvn -Dspotless.skip=true -DskipTests=false test — passed (49 tests)
  • Checkstyle, RAT, and git diff --check — passed
  • mvn -Prun-its -Dspotless.skip=true -DskipTests=false verify — unit/build phases passed; integration tests were interrupted after the local JDK 27/Groovy incompatibility (Unsupported class file major version 71) appeared

Spotless was skipped because the repository formatter is incompatible with the available local JDK.

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.

Getter with side-effect mutation in AbstractEarModule.getBundleDir() and getLibDir()

1 participant