add some new quickfixes to the list
Change-Id: I1bfbaf650f01bdf23a43e885c03aa444473210ac
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
diff --git a/bundles/org.eclipse.jdt.doc.user/reference/ref-java-editor-quickfix.htm b/bundles/org.eclipse.jdt.doc.user/reference/ref-java-editor-quickfix.htm
index 5986ca2..e8d57e0 100644
--- a/bundles/org.eclipse.jdt.doc.user/reference/ref-java-editor-quickfix.htm
+++ b/bundles/org.eclipse.jdt.doc.user/reference/ref-java-editor-quickfix.htm
@@ -3,7 +3,7 @@
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="copyright" content=
- "Copyright (c) IBM Corporation and others 2000, 2019. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." />
+ "Copyright (c) IBM Corporation and others 2000, 2020. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type=
"text/css" />
@@ -44,7 +44,7 @@
<br/>
<p>
<b>Usage hint:</b> Quick fixes are not only useful to fix errors that accidentally occurred.
- An other common usage pattern is to inentionally write "incorrect" code, for example by referring to
+ An other common usage pattern is to intentionally write "incorrect" code, for example by referring to
a local variable that is not declared yet. Then, the <b>Create local variable</b> Quick Fix can
generate the declaration in no time, and it can even infer the variable type.
</p>
@@ -394,6 +394,60 @@
</ul>
</td>
</tr>
+ <tr>
+ <td valign="top" align="right">
+ <b>Duplicate Code</b>
+ </td>
+ <td valign="top" align="left">
+ <ul>
+ <li>Replace (X && Y) || (!X && Z) by X ? Y: Z
+ </li>
+ <li>Use '==' or '^' on booleans
+ </li>
+ <li>Merge conditions of if/else if/else that have the same blocks
+ </li>
+ <li>Remove redundant end of block with jump statement
+ </li>
+ <li>Redundant if condition
+ </li>
+ </ul>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="right">
+ <b>Unnecessary code</b>
+ </td>
+ <td valign="top" align="left">
+ <ul>
+ <li>Use Objects.hash() (1.7 or higher)
+ </li>
+ <li>Use String.join() when possible (1.8 or higher)
+ </li>
+ <li>Use Arrays.fill() when possible
+ </li>
+ <li>Evaluate without null check
+ </li>
+ <li>Use Autoboxing (1.5 or higher)
+ </li>
+ <li>Use Unboxing (1.5 or higher)
+ </li>
+ <li>Push down negation
+ </li>
+ <li>Double negation
+ </li>
+ <li>Remove redundant comparison statement
+ </li>
+ <li>Remove redundant super() call in constructor
+ </li>
+ <li>Operate on Maps directly
+ </li>
+ <li>Initialize collection at creation
+ </li>
+ <li>...
+ </li>
+ </ul>
+ </td>
+ </tr>
</tbody>
</table>
<p>