public static void removeMarkers(IResource res) throws CoreException {
  res.deleteMarkers(FindBugsMarker.NAME,true,IResource.DEPTH_INFINITE);
  if (res instanceof IProject) {
    IProject project=(IProject)res;
    FindbugsPlugin.clearBugCollection(project);
  }
}

public static void removeMarkers ( IResource res ) throws CoreException { res . deleteMarkers ( FindBugsMarker . NAME , true , IResource . DEPTH_INFINITE ) ; if ( res instanceof IProject ) { IProject project = ( IProject ) res ; FindbugsPlugin . clearBugCollection ( project ) ; } }
remove all findbugs problem markers for given resource . if the given resource is project , will also clear bug collection .
