Skip to content

Simplify dev-mode property assignment in DefaultI18N - #55

Merged
slachiewicz merged 1 commit into
masterfrom
agent/sweep-i18n-devmode
Nov 18, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/sweep-i18n-devmode

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Why

initialize() used a three-line if to set devMode from the
PLEXUS_DEV_MODE system property. A direct boolean assignment is equivalent
and removes the redundant branch.

Area

Production code — org.codehaus.plexus.i18n.DefaultI18N.

Changes

  • Collapsed the if ("true".equals(System.getProperty("PLEXUS_DEV_MODE")))
    branch to a single devMode = ... assignment. No behavior change.

Verification

  • JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home mvn -B -o spotless:apply — BUILD SUCCESS (0 files changed)
  • mvn -B -o spotless:check — BUILD SUCCESS
  • mvn -B -o test — BUILD SUCCESS; Tests run: 5, Failures: 0, Errors: 0, Skipped: 0

The if-then assignment was equivalent to a direct boolean assignment; collapsing it removes a redundant branch without changing behavior.
@slachiewicz slachiewicz added the maintenance Cleanup, refactoring or other internal change label Nov 18, 2026
@slachiewicz
slachiewicz merged commit 8a9c8af into master Nov 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Cleanup, refactoring or other internal change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant