added handler for apple awt bug - http://www.jetbrains.net/devnet/thread/278896
[fedora-idea.git] / resources-en / src / inspectionDescriptions / HardCodedStringLiteral.html
blob873c769ae2b1e0b55843c69459006ee4c3753a90
1 <html>
2 <body>
3 <font face="verdana" size="-1">
4 This inspection reports any instances of hardcoded String literals. Hardcoded string literals are probably errors in
5 an internationalized environment.<br>
6 This inspection doesn't report instances of empty strings and strings consisting of only whitespace.
7 <p>
8 The checkboxes below may be used to further specialize whether this inspection should report
9 strings in:
10 <ul>
11 <li>assert statements, like in <b><font color="#000080">assert str.equals(<font color="#008000">"message"</font>)</font></b></li>
12 <li>exception constructor calls, like in <b><font color="#000080">new Exception(<font color="#008000">"message"</font>)</font></b></li>
13 <li>JUnit assert calls, like in <b><font color="#000080">assertEquals(str, <font color="#008000">"message"</font>)</font></b></li>
14 <li>the only argument to a method returning String, like in <b><font color="#000080">getStringByKey(<font color="#008000">"key"</font>)</font></b></li>
15 <li>literals with value of legal and existing class name like <b><font color="#000080">Class.forName(<font color="#008000">"java.lang.Object"</font>);</font></b></li>
16 <li>literals with value of legal and existing property key <b><font color="#000080">bundle.getString(<font color="#008000">"authentication.failed"</font>);</font></b></li>
17 </ul>
19 There is a quickfix provided that transforms
20 Java code string literal
21 into the <b><font color="#000080">java.util.ResourceBundle.getString()</font></b>
22 method call.
23 <br>
25 </font>
26 </body>
27 </html>