-
Notifications
You must be signed in to change notification settings - Fork 97
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
Conversation
@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")); |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
This is unrelated to Doxia. Here both English and |
…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 ...
https://stackoverflow.com/questions/11063102/using-locales-with-javas-tolowercase-and-touppercase