Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 205436 Details for
Bug 359721
[options] add command line option for new warning token "resource"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
proposed doc update
Bug_359721_doc.patch (text/plain), 5.13 KB, created by
Stephan Herrmann
on 2011-10-18 11:58:06 EDT
(
hide
)
Description:
proposed doc update
Filename:
MIME Type:
Creator:
Stephan Herrmann
Created:
2011-10-18 11:58:06 EDT
Size:
5.13 KB
patch
obsolete
>diff --git a/bundles/org.eclipse.jdt.doc.user/tasks/task-suppress_warnings.htm b/bundles/org.eclipse.jdt.doc.user/tasks/task-suppress_warnings.htm >index 90541a7..d1125f1 100644 >--- a/bundles/org.eclipse.jdt.doc.user/tasks/task-suppress_warnings.htm >+++ b/bundles/org.eclipse.jdt.doc.user/tasks/task-suppress_warnings.htm >@@ -40,6 +40,7 @@ > <li><span class="token">nls</span> to suppress warnings relative to non-nls string literals</li> > <li><span class="token">null</span> to suppress warnings relative to null analysis</li> > <li><span class="token">rawtypes</span> to suppress warnings relative to usage of raw types</li> >+<li><span class="token">resource</span> to suppress warnings relative to usage of resources of type Closeable</li> > <li><span class="token">restriction</span> to suppress warnings relative to usage of discouraged or forbidden references</li> > > <li><span class="token">serial</span> to suppress warnings relative to missing serialVersionUID field for a serializable class</li> >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 a258dad..34e0d96 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 >@@ -216,7 +216,7 @@ > <td colspan="3">Display advanced warning options</td> > </tr> > <tr> >-<td valign="top" width="250" rowspan="70">-warn:...</td> >+<td valign="top" width="250" rowspan="72">-warn:...</td> > > <td valign="top" colspan="3">Specify the set of enabled warnings.<br /> > e.g. <span class="c3">-warn:unusedLocal,deprecation</span><br /> >@@ -239,6 +239,9 @@ > <td>disable specific warnings</td> > </tr> > </table> >+In the column <strong>Default</strong> below, a mark "+/-" indicates that an option covers several fine grained warning variants, >+some of which are enabled by default, others disabled. This means that specifying the given option with "+" >+will enable more warnings than the default, and specifying "-" disables some that are enabled by default. > </td> > </tr> > <tr> >@@ -247,13 +250,13 @@ > <th align="left">Description</th> > </tr> > <tr> >-<td align="center" valign="top">-</td> >+<td align="center" valign="top">+/-</td> > <td align="left" valign="top">allDeadCode</td> > <td valign="top">dead code including trivial if(DEBUG) check</td> > </tr> > > <tr> >-<td align="center" valign="top">-</td> >+<td align="center" valign="top">+/-</td> > <td align="left" valign="top">allDeprecation</td> > <td valign="top">deprecation even inside deprecated code</td> > </tr> >@@ -267,6 +270,11 @@ > <td align="center" valign="top">-</td> > <td align="left" valign="top">allOver-ann</td> > <td valign="top">all missing @Override annotations (superclass and superinterfaces)</td> >+</tr> >+<tr> >+<td align="center" valign="top">-</td> >+<td align="left" valign="top">all-static-method</td> >+<td valign="top">all method can be declared as static warnings</td> > </tr> > <tr> > <td align="center" valign="top">+</td> >@@ -313,7 +321,7 @@ > <td valign="top">missing @Deprecated annotation</td> > </tr> > <tr> >-<td align="center" valign="top">+</td> >+<td align="center" valign="top">+/-</td> > <td align="left" valign="top">deprecation</td> > <td valign="top">usage of deprecated type or member outside deprecated code</td> > </tr> >@@ -373,7 +381,7 @@ > <td valign="top">missing hashCode() method when overriding equals()</td> > </tr> > <tr> >-<td align="center" valign="top">-</td> >+<td align="center" valign="top">+/-</td> > <td align="left" valign="top">hiding</td> > <td valign="top">macro for fieldHiding, localHiding, typeHiding and maskedCatchBlock</td> > </tr> >@@ -432,7 +440,7 @@ > </tr> > > <tr> >-<td align="center" valign="top">-</td> >+<td align="center" valign="top">+/-</td> > <td align="left" valign="top">null</td> > <td valign="top">potential missing or redundant null check</td> > </tr> >@@ -464,6 +472,12 @@ > <td valign="top">usage a of raw type (instead of a parameterized type)</td> > </tr> > <tr> >+<td align="center" valign="top">+/-</td> >+<td align="left" valign="top">resource</td> >+<td valign="top">(potentially) unsafe usage of resource of type Closeable</td> >+</tr> >+ >+<tr> > <td align="center" valign="top">-</td> > <td align="left" valign="top">semicolon</td> > >@@ -481,7 +495,7 @@ > > </tr> > <tr> >-<td align="center" valign="top">-</td> >+<td align="center" valign="top">+/-</td> > <td align="left" valign="top">static-access</td> > <td valign="top">macro for indirectStatic and staticReceiver</td> > </tr> >@@ -549,7 +563,7 @@ > > </tr> > <tr> >-<td align="center" valign="top">-</td> >+<td align="center" valign="top">+/-</td> > <td align="left" valign="top">unused</td> > <td valign="top">macro for unusedAllocation, unusedArgument, unusedImport, unusedLabel, unusedLocal, unusedPrivate, unusedThrown and unusedTypeArgs</td> > </tr> >@@ -605,9 +619,9 @@ > <td valign="top">varargs argument need explicit cast</td> > </tr> > <tr> >-<td align="center" valign="top">+</td> >+<td align="center" valign="top">+/-</td> > <td align="left" valign="top">warningToken</td> >-<td valign="top">unhandled warning token in @SuppressWarnings</td> >+<td valign="top">unhandled or unused warning token in @SuppressWarnings</td> > </tr> > <tr> > <td valign="top">-nowarn</td>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 359721
:
204459
| 205436