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.
8 The checkboxes below may be used to further specialize whether this inspection should report
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>
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>