tag:blogger.com,1999:blog-1616206987206690523.post8573850622558615234..comments2023-04-03T03:55:38.181-07:00Comments on The Coder Lounge: Weird code pattern in Eclipse SDKDeepakhttp://www.blogger.com/profile/12947774811212314687noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1616206987206690523.post-19718892807885153762012-01-27T02:43:02.416-08:002012-01-27T02:43:02.416-08:00@Anonymous: Exactly, the warning is correct, and t...@Anonymous: Exactly, the warning is correct, and there are several instances of such a warning in Eclipse SDK source.Deepakhttps://www.blogger.com/profile/12947774811212314687noreply@blogger.comtag:blogger.com,1999:blog-1616206987206690523.post-69671197735402246452012-01-27T02:17:56.945-08:002012-01-27T02:17:56.945-08:00Not sure what you are writing about. First conditi...Not sure what you are writing about. First condition explicitly checks is it null and executes remove() only on not null field. Second condition does not check nullability, so the warning is correct (in context of code you've pasted).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1616206987206690523.post-76303100552620485522012-01-26T23:43:24.632-08:002012-01-26T23:43:24.632-08:00One possibility to improve Eclipse quality would b...One possibility to improve Eclipse quality would be to *enforce* the NPE checking via more strict build settings. I've just created https://bugs.eclipse.org/bugs/show_bug.cgi?id=369901<br /><br />*Years* ago I've requested to do this by using FindBugs, but it was rejected (https://bugs.eclipse.org/bugs/show_bug.cgi?id=279212<br />https://bugs.eclipse.org/bugs/show_bug.cgi?id=247073). Let see if the bug above will be rejected too...<br /><br />Regards,<br />AndreyAndrey Loskutovhttps://www.blogger.com/profile/09548188399628810900noreply@blogger.comtag:blogger.com,1999:blog-1616206987206690523.post-12445760903373025802012-01-26T10:49:47.479-08:002012-01-26T10:49:47.479-08:00Nice to see JDT finally getting some of the basics...Nice to see JDT finally getting some of the basics that FindBugs and PMD have had for years. Hopefully it can catch some of the What the F*! moments we see everyday.David Carverhttps://www.blogger.com/profile/09341170413510029324noreply@blogger.com