Files
openide/java/java-impl/resources/inspectionDescriptions/StringToUpperWithoutLocale.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

14 lines
788 B
HTML

<html>
<body>
Reports <code>toUpperCase()</code> or <code>toLowerCase()</code> calls on <code>String</code> objects that do not specify a
<code>java.util.Locale</code>. In these cases the default system locale is used, which can cause problems in an internationalized
environment.
<p>
For example the code <code>"i".toUpperCase().equals("I")</code> returns <code>false</code> in the Turkish and Azerbaijani locales, where
the dotted and dotless 'i' are separate letters. Calling <code>toUpperCase()</code> on an English string containing an 'i', when running
in a Turkish locale, will return incorrect results. Alternatively, when dealing with strings that should be treated as locale-independent,
like HTML tags, this can lead to errors.
</p>
<!-- tooltip end -->
</body>
</html>