You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2015/03/12 18:17:17 UTC

svn commit: r943568 - in /websites/staging/sling/trunk/content: ./ documentation/development/jsr-305.html

Author: buildbot
Date: Thu Mar 12 17:17:17 2015
New Revision: 943568

Log:
Staging update by buildbot for sling

Modified:
    websites/staging/sling/trunk/content/   (props changed)
    websites/staging/sling/trunk/content/documentation/development/jsr-305.html

Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Mar 12 17:17:17 2015
@@ -1 +1 @@
-1666134
+1666261

Modified: websites/staging/sling/trunk/content/documentation/development/jsr-305.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/development/jsr-305.html (original)
+++ websites/staging/sling/trunk/content/documentation/development/jsr-305.html Thu Mar 12 17:17:17 2015
@@ -108,6 +108,7 @@ Also the annotations need to be configur
 <li><code>javax.annotation.Nonnull</code> as <strong>'NonNull' annotation</strong></li>
 </ul>
 <p><img alt="Eclipse Settings for Null analysis" src="eclipse-settings-null-analysis.png" /></p>
+<p>Unfortunately Eclipse cannot infer information about fields which are for sure either null or not null (<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=247564">Eclipse Bug 247564</a>). This also affecs constants (static final fields) or enums which are known to be non null, but still Eclipse will emit a warning like <em>The expression of type 'String' needs unchecked conversion to conform to '@Nonnull String'</em>. The only known workaround is to disable the <strong>"Unchecked conversion from non-annotated type to @NonNull type"</strong> or use the fixes proposed in <a href="https://wiki.eclipse.org/JDT_Core/Null_Analysis">https://wiki.eclipse.org/JDT_Core/Null_Analysis</a>.</p>
 <h2 id="use-with-findbugs">Use With Findbugs</h2>
 <p>Findbugs evaluates the used annotations by default. You can restrict the rules to only the ones which check for those annotations, which are</p>
 <ul>
@@ -141,7 +142,7 @@ Also the annotations need to be configur
 
 <p>The results are often very imprecise (<a href="http://jira.codehaus.org/browse/MFINDBUGS-208">MFINDBUGS-208</a>), especially when it comes to line numbers, therefore it is best to start the Findbugs GUI in case of errors found by this plugin via <code>mvn findbugs:gui</code>.</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1662217 by kwin on Wed, 25 Feb 2015 14:10:02 +0000
+        Rev. 1666261 by kwin on Thu, 12 Mar 2015 17:17:05 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project