Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Specify locale for case conversion #345

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Specify locale for case conversion #345

merged 1 commit into from
Dec 4, 2024

Conversation

elharo
Copy link
Contributor

@elharo elharo commented Dec 4, 2024

@elharo elharo requested a review from slachiewicz December 4, 2024 10:42
@elharo elharo marked this pull request as ready for review December 4, 2024 11:00
@slachiewicz
Copy link
Member

@michael-o English or like we have in Doxia ROOT ?

}

// nohelp == true
assertFalse(str.toUpperCase().contains("/HELP-DOC.HTML"));
assertFalse(str.toUpperCase(Locale.ENGLISH).contains("/HELP-DOC.HTML"));
Copy link
Member

Choose a reason for hiding this comment

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

Is this really uppercase, that looks weird...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could go either way.

assertFalse(str.toLowerCase(Locale.ENGLISH).contains("/help-doc.html"));

is semantically equivalent. Probably just the preference of whoever first wrote this line of code.

@michael-o
Copy link
Member

@michael-o English or like we have in Doxia ROOT ?

This is unrelated to Doxia. Here both English and ROOT are fine. I'd simply check other plugins for packaging comparison and would do it accordingly.

@elharo elharo merged commit 62586c2 into master Dec 4, 2024
114 checks passed
@elharo elharo deleted the locale branch December 4, 2024 19:14
rreich added a commit to CoreMedia/maven-javadoc-plugin that referenced this pull request Feb 17, 2025
…a-update-3.12.0

* commit 'dc085593a39b845805ccbd04078c782bc1859275': (162 commits)
  [MJAVADOC-824] remove output-configuration.apt.vm (apache#349)
  Specify locale for case conversion (apache#345)
  Replace two deprecated methods (apache#347)
  Replace some deprecated FileUtils methods (apache#340)
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release maven-javadoc-plugin-3.11.2
  use github for scm
  Bump com.thoughtworks.qdox:qdox from 2.1.0 to 2.2.0
  [MJAVADOC-823] legacyMode keeps using module-info.java (-sourcedirectory still use as well as java files input) (apache#343)
  Bump commons-io:commons-io from 2.17.0 to 2.18.0
  Migrate from Plexus to Sisu Guice (apache#341)
  Remove usages of deprecated ReaderFactory class (apache#339)
  [MJAVADOC-814] handle parameters such packages with multi lines (apache#337)
  refactor: Replace Plexus AbstractLogEnabled with SLF4J (apache#338)
  [MJAVADOC-822] skippedModules should be more scalable and support regex (apache#336)
  Bump org.codehaus.mojo:l10n-maven-plugin from 1.0.0 to 1.1.0
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release maven-javadoc-plugin-3.11.1
  [MJAVADOC-821] Align toolchain discovery code with Maven Compiler Plugin
  [MJAVADOC-820] [REGRESSION] MJAVADOC-787 was merged incompletely
  ...
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants