Bug 569847 - [AutoRefactor immigration #51/146] [cleanup & saveaction]
Static inner class

Change-Id: I72f8f4c6db368093153f59e3929837751d0a89be
Signed-off-by: Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr>
Depends-On: I6c93d06ac53003fed1989e65237e179ed3fdf159
diff --git a/4.19/images/optimization-preferences.png b/4.19/images/optimization-preferences.png
new file mode 100644
index 0000000..ecbc2d0
--- /dev/null
+++ b/4.19/images/optimization-preferences.png
Binary files differ
diff --git a/4.19/images/static-inner-class-after.png b/4.19/images/static-inner-class-after.png
new file mode 100644
index 0000000..59720f1
--- /dev/null
+++ b/4.19/images/static-inner-class-after.png
Binary files differ
diff --git a/4.19/images/static-inner-class-before.png b/4.19/images/static-inner-class-before.png
new file mode 100644
index 0000000..07adcde
--- /dev/null
+++ b/4.19/images/static-inner-class-before.png
Binary files differ
diff --git a/4.19/jdt.html b/4.19/jdt.html
index 8aae54c..dbfd225 100644
--- a/4.19/jdt.html
+++ b/4.19/jdt.html
@@ -119,6 +119,25 @@
     </td>
   </tr>
 
+  <tr id="static-inner-class"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=569847 -->
+    <td class="title"><a href="#static-inner-class">Static inner class</a></td>
+    <td class="content">
+      A new clean up has been added that makes inner class <code>static</code> if it doesn't use top level class members.
+      <p>
+        To apply the clean up, select <b>Make inner classes static where possible</b> check box on the <b>Optimization</b> tab in your clean up profile.
+      </p>
+      <p><img src="images/optimization-preferences.png" alt="Preferences" width="800 px"/></p>
+      <p>
+        For the given code:
+      </p>
+      <p><img src="images/static-inner-class-before.png" alt="Before cleaning similar tails of blocks"/></p>
+      <p>
+        One gets:
+      </p>
+      <p><img src="images/static-inner-class-after.png" alt="After cleaning similar tails of blocks"/></p>
+    </td>
+  </tr>
+
   <tr id="control-flow-merge"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=568656 -->
     <td class="title"><a href="#control-flow-merge">Pull down common code from if/else statement</a></td>
     <td class="content">