diff options
Diffstat (limited to 'plugins/InspectionGadgets/src/inspectionDescriptions/UnnecessaryToStringCall.html')
-rw-r--r-- | plugins/InspectionGadgets/src/inspectionDescriptions/UnnecessaryToStringCall.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/InspectionGadgets/src/inspectionDescriptions/UnnecessaryToStringCall.html b/plugins/InspectionGadgets/src/inspectionDescriptions/UnnecessaryToStringCall.html new file mode 100644 index 000000000000..69cfb6134430 --- /dev/null +++ b/plugins/InspectionGadgets/src/inspectionDescriptions/UnnecessaryToStringCall.html @@ -0,0 +1,13 @@ +<html> +<body> +Reports on any calls to <b>.toString()</b> used in string concatenations and as arguments to the +<b>print</b> and <b>println</b> methods of <b>java.io.PrintWriter</b> and <b>java.io.PrintStream</b>. The conversion +to string will be handled by the underlying library methods without an explicit call to <b>.toString()</b>. +<p> +Note that without the <b>.toString()</b> the expression will have different semantics (the string "null" will be used instead of + throwing a <b>NullPointerException</b>). +<!-- tooltip end --> +<p> +<small>Powered by InspectionGadgets</small> +</body> +</html>
\ No newline at end of file |