mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
14 lines
788 B
HTML
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> |