{"id":1808,"date":"2022-08-30T15:19:37","date_gmt":"2022-08-30T15:19:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/02\/eclipse-helios-suppresswarnings-rawtypes-doesnt-work-while-unchecked-does-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:19:37","modified_gmt":"2022-08-30T15:19:37","slug":"eclipse-helios-suppresswarnings-rawtypes-doesnt-work-while-unchecked-does-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/eclipse-helios-suppresswarnings-rawtypes-doesnt-work-while-unchecked-does-collection-of-common-programming-errors\/","title":{"rendered":"Eclipse Helios &#8211; @SuppressWarnings &ldquo;rawtypes&rdquo; doesn&#39;t work while &ldquo;unchecked&rdquo; does-Collection of common programming errors"},"content":{"rendered":"<p>I have a problem with the <code>@SuppressWarnings<\/code> annotation when handling raw-types warnings in Eclipse Helios.<\/p>\n<p>According to this post and the docs, the annotation parameter <code>rawtypes<\/code> should be used instead of the old <code>unchecked<\/code> in Eclipse Helios. However, when I use the <code>rawtypes<\/code> annotation, I get following warning:<\/p>\n<pre><code>Unhandled warning token rawtypes\n<\/code><\/pre>\n<p>Even when performing a quick-fix over a raw type, Eclipse suggests me to use <code>rawtypes<\/code>. However, I have found out that the old <code>unchecked<\/code> parameter still works in my version of Helios while <code>rawtypes<\/code> doesn&#8217;t, which doesn&#8217;t conform to the docs.<\/p>\n<p>So basically I have already &#8220;solved&#8221; this issue but the real question is why <code>rawtypes<\/code> doesn&#8217;t work?<\/p>\n<p>My Eclipse setup:<\/p>\n<pre><code>Version: Helios Service Release 2\nBuild id: 20110301-1815\n<\/code><\/pre>\n<p>Project setup:<\/p>\n<pre><code>Java Build Path &gt; JRE System Library: jdk1.6.0_24\nJava Compiler &gt; JDK Compliance: 1.6\nJava Compiler &gt; Generated .class files compatibility: 1.6\nJava Compiler &gt; Source compatibility: 1.6\n<\/code><\/pre>\n<p>From <code>eclipse.ini<\/code>:<\/p>\n<pre><code>-vm\nc:\/Program Files\/Java\/jdk1.6.0_24\/bin\n-vmargs\n-Dosgi.requiredJavaVersion=1.6\n-Xms40m\n-Xmx512m\n<\/code><\/pre>\n<p>System:<\/p>\n<pre><code>Windows 7 Professional Service Pack 1\n<\/code><\/pre>\n<p>Any help or explanation will be much appreciated, thanks!<\/p>\n<p id=\"rop\"><small>Originally posted 2013-12-02 01:37:35. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have a problem with the @SuppressWarnings annotation when handling raw-types warnings in Eclipse Helios. According to this post and the docs, the annotation parameter rawtypes should be used instead of the old unchecked in Eclipse Helios. However, when I use the rawtypes annotation, I get following warning: Unhandled warning token rawtypes Even when performing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1808","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1808"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1808\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}