Bug 5358 Suspicious usage of IJavaElementDelta.getFlags()
Build 20011025 Searching for references to IJavaElement.getFlags(), I found suspicious usage in JDT UI code. There are pattern of code like this one: delta.getFlags() == IJavaElementDelta.F_CONTENT where it should be: (delta.getFlags() & IJavaElementDelta.F_CONTENT) != 0
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyLifeCycle.java
throw new JavaModelException(th, IStatus.ERROR);
				}
			} catch (InterruptedException e) {
				
			}
			
			fHierarchyRefreshNeeded= false;
		}
	}
	
	private void doHierarchyRefresh(IJavaElement element, IProgressMonitor pm) throws JavaModelException {
		boolean hierachyCreationNeeded= (fHierarchy == null || !element.equals(fInputElement));
		if (hierachyCreationNeeded) {
			if (fHierarchy != null) {
				fHierarchy.removeTypeHierarchyChangedListener(this);
				JavaCore.removeElementChangedListener(this);
			}
			fInputElement= element;
			if (element.getElementType() == IJavaElement.TYPE) {
				IType type= (IType) element;
				if (fIsSuperTypesOnly) {
					fHierarchy= type.newSupertypeHierarchy(pm);
				} else {
					fHierarchy= type.newTypeHierarchy(pm);
				}
			} else {
				IJavaProject jproject= element.getJavaProject();
				IRegion region= JavaCore.newRegion();
				region.add(element);
				fHierarchy= jproject.newTypeHierarchy(region, pm);