Bug 496137 - [compiler][batch] support INFO problem severity?
Change-Id: I8a9bf9b966ffc76da02e91e3f85b6c311fc9e20a
Signed-off-by: Till Brychcy <register.eclipse@brychcy.de>
diff --git a/bundles/org.eclipse.jdt.doc.user/tasks/task-using_batch_compiler.htm b/bundles/org.eclipse.jdt.doc.user/tasks/task-using_batch_compiler.htm
index 859a136..f03dfba 100644
--- a/bundles/org.eclipse.jdt.doc.user/tasks/task-using_batch_compiler.htm
+++ b/bundles/org.eclipse.jdt.doc.user/tasks/task-using_batch_compiler.htm
@@ -55,7 +55,7 @@
<p>The recommended options have an orange background.</p>
<p>When some options are being set multiple times, the batch compiler consumes them from left to right. When the warning option (-warn:....) is used without '+' or '-', this overrides the set of
warnings previously specified. So you should make sure that such an option is given before any other usage of the -warn option.</p>
-<p>Same applies for the -err: option.</p>
+<p>Same applies for the -err: and -info: options.</p>
<table border="1" cellspacing="2" cellpadding="2">
<tr>
<th>Name</th>
@@ -226,7 +226,7 @@
<table>
<tr>
<td><span class="c3">-warn:none</span></td>
-<td>disable all warnings</td>
+<td>disable all warnings and infos</td>
</tr>
<tr>
<td><span class="c3">-warn:</span><warning tokens separated by <span class="c3">,</span>></td>
@@ -839,6 +839,29 @@
</tr>
<tr>
+<td valign="top" width="250" id="info">-info:...</td>
+<td valign="top" colspan="3">Specify the set of enabled warnings that are converted to infos.<br />
+e.g. <span class="c3">-info:unusedLocal,deprecation</span><br />
+unusedLocal and deprecation warnings will be converted to infos. All other warnings are still reported as warnings.
+<table>
+<tr>
+<td>-info:<warning tokens separated by ,></td>
+<td>convert exactly the listed warnings to infos</td>
+</tr>
+
+<tr>
+<td>-info:+<warning tokens separated by ,></td>
+<td>convert additional warnings to infos</td>
+</tr>
+<tr>
+<td>-info:-<warning tokens separated by ,></td>
+<td>remove specific warnings from being converted to infos</td>
+</tr>
+</table>
+</td>
+</tr>
+
+<tr>
<td valign="top" id="deprecation">-deprecation</td>
<td colspan="3">Equivalent to <span class="c3">-warn:+deprecation</span>.</td>
</tr>