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 209830 Details for
Bug 369246
Update doc for null analysis
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
proposed fix
Fixed-bug-369246-Update-doc-for-null-analysis.patch (text/plain), 4.84 KB, created by
Ayushman Jain
on 2012-01-20 10:31:06 EST
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
Ayushman Jain
Created:
2012-01-20 10:31:06 EST
Size:
4.84 KB
patch
obsolete
>diff --git a/bundles/org.eclipse.jdt.doc.isv/guide/jdt_api_options.htm b/bundles/org.eclipse.jdt.doc.isv/guide/jdt_api_options.htm >index bcbab59..3b2eabf 100644 >--- a/bundles/org.eclipse.jdt.doc.isv/guide/jdt_api_options.htm >+++ b/bundles/org.eclipse.jdt.doc.isv/guide/jdt_api_options.htm >@@ -1461,8 +1461,6 @@ > current location. Such a default may be effective by enabling the option > <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NONNULL_IS_DEFAULT">COMPILER_NONNULL_IS_DEFAULT</a> or by using the annotation specified by the option > <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_NAME">COMPILER_NONNULL_BY_DEFAULT_ANNOTATION_NAME</a>. >-Insufficient nullness information is usually a consequence of using other unannotated >-variables or methods. > <p>The compiler options <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NONNULL_ANNOTATION_NAME">COMPILER_NONNULL_ANNOTATION_NAME</a> and > <a href="../reference/api/org/eclipse/jdt/core/JavaCore.html#COMPILER_NULLABLE_ANNOTATION_NAME">COMPILER_NULLABLE_ANNOTATION_NAME</a> control which annotations the compiler > shall interpret as nonnull or nullable annotations, respectively. >diff --git a/bundles/org.eclipse.jdt.doc.user/reference/preferences/java/compiler/ref-preferences-errors-warnings.htm b/bundles/org.eclipse.jdt.doc.user/reference/preferences/java/compiler/ref-preferences-errors-warnings.htm >index 238edfb..a15776f 100644 >--- a/bundles/org.eclipse.jdt.doc.user/reference/preferences/java/compiler/ref-preferences-errors-warnings.htm >+++ b/bundles/org.eclipse.jdt.doc.user/reference/preferences/java/compiler/ref-preferences-errors-warnings.htm >@@ -777,6 +777,7 @@ > </td> > <td valign="top"> > <p>When enabled, the compiler will issue an error or a warning when it encounters that a local variable which is certainly null is dereferenced. Note that the analysis can not find all null pointer accesses, see <strong>Potential null pointer access</strong>.</p> >+ <p>This diagnostic can also be enabled for fields using the option <b>Include fields in null analysis</b>.</p> > </td> > <td valign="top"> > <p>Warning</p> >@@ -788,6 +789,9 @@ > </td> > <td valign="top"> > <p>When enabled, the compiler will issue an error or a warning when it encounters that a local variable which may be null is dereferenced. Note that the analysis is fairly conservative, it only considers cases where there is something suspicious.</p> >+ <p>This diagnostic can also be enabled for fields using the option <b>Include fields in null analysis</b>.</p> >+ <p>The quality of the analysis can be improved by using null-annotations, which can be enabled using the option >+ <b>Enable annotation-based null analysis</b> > </td> > <td valign="top"> > <p>Ignore</p> >@@ -799,9 +803,23 @@ > </td> > <td valign="top"> > <p>When enabled, the compiler will issue an error or a warning whenever a local variable which can not be null is tested for null.</p> >+ <p>This diagnostic can also be enabled for fields using the option <b>Include fields in null analysis</b> below.</p> > </td> > <td valign="top"> > <p>Ignore</p> >+ </td> >+ </tr> >+ <tr> >+ <td valign="top"> >+ <p>Include fields in null analysis</p> >+ </td> >+ <td valign="top"> >+ <p>When enabled, the compiler will raise null analysis based errors or warnings on fields.</p> >+ <p>These diagnostics can be configured using the options <b>Null pointer access</b>, >+ <b>Potential null pointer access</b> and <b>Redundant null check</b>. >+ </td> >+ <td valign="top"> >+ <p>Off</p> > </td> > </tr> > <tr> >@@ -870,10 +888,11 @@ > </tr> > <tr> > <td valign="top" style="padding-left: 2em;"> >- <p>Use non-null as workspace-wide default</p> >+ <p>Use non-null as workspace-wide (or project-wide) default</p> > </td> > <td valign="top"> >- <p>When enabled, this option globally achieves the same effect as specifying <b>'NonNull' annotation</b> does for individual elements.</p> >+ <p>When enabled, this option globally (at a workspace level or project level depending on >+ where the option is configured) achieves the same effect as specifying <b>'NonNull' annotation</b> does for individual elements.</p> > </td> > <td valign="top"> > <p>Off</p> >@@ -937,7 +956,7 @@ > </td> > <td valign="top"> > <p>When enabled, the compiler will issue an error or a warning when a non-null annotation is applied although the same effect is already achieved by a default applicable at the current location. >- Such a default may be set by enabling the option <b>Use non-null as workspace-wide default</b> or by using the annotation specified by the option <b>'NonNullByDefault' annotation</b>.</p> >+ Such a default may be set by enabling the option <b>Use non-null as workspace-wide (or project-wide) default</b> or by using the annotation specified by the option <b>'NonNullByDefault' annotation</b>.</p> > </td> > <td valign="top"> > <p>Warning</p>
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 369246
: 209830