tyutNo4 / findbugs

Automatically exported from code.google.com/p/findbugs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

instanceof will always return false in shareStrings(StringPool), since a org.eclipse.core.internal.resources.IMarkerSetElement can't be a String in MarkerSet.java

GoogleCodeExporter opened this issue · comments

Bug report generated from FindBugs
instanceof will always return false in shareStrings(StringPool), since a 
org.eclipse.core.internal.resources.IMarkerSetElement can't be a String

In class org.eclipse.core.internal.resources.MarkerSet
  In method shareStrings(StringPool)
  Actual type org.eclipse.core.internal.resources.IMarkerSetElement
  Expected String
  Value loaded from o
  At MarkerSet.java:[line 238]
Bug pattern explanation:
This instanceof test will always return false. Although this is safe, make 
sure it isn't an indication of some misunderstanding or some other logic error.



FindBugs issue identifier (do not modify or remove): 
d75a10dfc7c2ebdaa1e6f59eb9bc05c9

Original issue reported on code.google.com by keithl on 11 Feb 2010 at 12:32

Original comment by keithl on 11 Feb 2010 at 12:33

  • Changed state: Invalid