<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://jetbrains.dzone.com"  xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dz="http://www.developerzone.com/modules/dz/1.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
 <title>JetBrains Zone - Comments for &quot;Using External Annotations&quot;</title>
 <link>http://jetbrains.dzone.com/tips/using-external-annotations</link>
 <description>Comments for &quot;Using External Annotations&quot;</description>
 <language>en</language>
<item>
 <title>JSR 305 focus to</title>
 <link>http://jetbrains.dzone.com/tips/using-external-annotations#comment-1394</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;JSR 305 focus to assist
defect detection tools. JSR 308  to extend scope of annotation apply.&lt;/p&gt;&lt;p&gt;The key problem is  that that not include compiler.&lt;/p&gt;&lt;p&gt;void doSth(Object @NotNull source){&lt;/p&gt;&lt;p&gt;... &lt;br /&gt;
&lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;@NotNull Object biz1(){return aNonNull;} &lt;/p&gt;&lt;p&gt;Object biz2(){return null;}  &lt;/p&gt;&lt;p&gt;void main(){&lt;/p&gt;&lt;p&gt;doSth(biz1());&lt;/p&gt;&lt;p&gt; doSth(biz2());&lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;the Compiler should do thing like this:&lt;/p&gt;&lt;p&gt;void main(){&lt;/p&gt;&lt;p&gt;Object result = biz1(); &lt;br /&gt;
&lt;/p&gt;&lt;p&gt;doSth(result);&lt;/p&gt;&lt;p&gt;result=biz2(); &lt;/p&gt;&lt;p&gt;if (result!=null) &lt;/p&gt;&lt;p&gt;throw HowProcessIsAnAnotherProblem(); &lt;/p&gt;&lt;p&gt;else&lt;/p&gt;&lt;p&gt;doSth(result); &lt;br /&gt;
&lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;Does someone knows who focus compiler extending?&lt;/p&gt;&lt;p&gt;Regards. &lt;/p&gt;</description>
 <pubDate>Sun, 24 Feb 2008 20:11:30 -0500</pubDate>
 <dc:creator>qinxian</dc:creator>
 <guid isPermaLink="false">comment 1394 at http://jetbrains.dzone.com</guid>
</item>
<item>
 <title>not quite Ann.You will need</title>
 <link>http://jetbrains.dzone.com/tips/using-external-annotations#comment-1234</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;not quite Ann.&lt;/p&gt;&lt;p&gt;You will need the annotations.jar on the classpath at compile time whether you compile inside IntelliJ or out.&lt;br /&gt;So there is a compile time dependency, which you may want to avoid if you have a project where not everyone uses IntelliJ.&lt;br /&gt;Of course the same is true for whatever library you choose. You always end up with a dependency on it, which is why I don&#039;t worry about such things except for wanting to make sure I&#039;m not hooking myself into something that&#039;s a dead or dying project (and I&#039;ve no such worries about IntelliJ for the foreseeable future).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
 <pubDate>Thu, 21 Feb 2008 01:51:43 -0500</pubDate>
 <dc:creator>jwenting</dc:creator>
 <guid isPermaLink="false">comment 1234 at http://jetbrains.dzone.com</guid>
</item>
<item>
 <title>Oh, your concerns about</title>
 <link>http://jetbrains.dzone.com/tips/using-external-annotations#comment-1208</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Oh, your concerns about JSR-305 and setting standards for use of
annotations are absolutely understandable. With this regard, you might want to
know that JetBrains is actually the active member of this JSR, and
whatever is finally set, is going to be immediately supported in
IntelliJ IDEA.&lt;/p&gt;&lt;p&gt;As for any worries regarding being hooked to the
IntelliJ IDEA&#039;s annotation library, these external annotations are
exactly the mean to avoid that. They allow you to keep your code free
of explicit annotations, while still analyzable if you open it in
IntelliJ IDEA. &lt;/p&gt;</description>
 <pubDate>Wed, 20 Feb 2008 13:39:00 -0500</pubDate>
 <dc:creator>ann</dc:creator>
 <guid isPermaLink="false">comment 1208 at http://jetbrains.dzone.com</guid>
</item>
<item>
 <title>I aggree to that,Even though</title>
 <link>http://jetbrains.dzone.com/tips/using-external-annotations#comment-1186</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;I aggree to that,&lt;/p&gt;&lt;p&gt;Even though I like IntelliJ Idea, I wouldn&#039;t want my classes depending on their annotation library. &lt;/p&gt;</description>
 <pubDate>Wed, 20 Feb 2008 04:56:46 -0500</pubDate>
 <dc:creator>serkangunes</dc:creator>
 <guid isPermaLink="false">comment 1186 at http://jetbrains.dzone.com</guid>
</item>
<item>
 <title>FindBugs also defines an</title>
 <link>http://jetbrains.dzone.com/tips/using-external-annotations#comment-1145</link>
 <description>&lt;!--paging_filter--&gt;FindBugs also defines an &lt;a href=&quot;http://findbugs.sourceforge.net/api/edu/umd/cs/findbugs/annotations/CheckForNull.html&quot;&gt;annotation&lt;/a&gt; for nullability.  But probably a better idea is to have some kind of standard annotation for this kind of thing and that idea is being worked on as &lt;a href=&quot;http://www.google.com/url?sa=t&amp;amp;ct=res&amp;amp;cd=1&amp;amp;url=http%3A%2F%2Fjcp.org%2Fen%2Fjsr%2Fdetail%3Fid%3D305&amp;amp;ei=jxe7R6KQO52IgAPHzfDSCw&amp;amp;usg=AFQjCNGhEeEFkVGelyaGG4hPTrNSY5fAaQ&amp;amp;sig2=5pSiqesjiw_QMZYnrlHtKA&quot;&gt;JSR 305&lt;/a&gt;.  Also tangentially related is &lt;a href=&quot;http://tech.puredanger.com/java7#jsr308&quot;&gt;JSR 308&lt;/a&gt; which would allow annotations on a much broader set of locations in Java (in particular, on types).  </description>
 <pubDate>Tue, 19 Feb 2008 12:57:21 -0500</pubDate>
 <dc:creator>puredanger</dc:creator>
 <guid isPermaLink="false">comment 1145 at http://jetbrains.dzone.com</guid>
</item>
</channel>
</rss>
