JavaClass javaClass = null;    if (item.isApplication()) { vertex.setApplication(true); vertex.setMissing(false); vertex.setFinished(true); javaClass = item.getJavaClass(); } else { vertex.setApplication(false);
JavaClass javaClass = item.getJavaClass(); if (javaClass == null) {
	private void addToClassHierarchyGraph(JavaClass appClass) {		LinkedList<WorkListItem> workList = new LinkedList<WorkListItem>();		workList.add(new WorkListItem(appClass));				while (!workList.isEmpty()) {			WorkListItem item = workList.removeFirst();			ClassHierarchyGraphVertex vertex = classHierarchyGraph.lookupVertex(item.getClassName());						if (vertex == null) {				vertex = classHierarchyGraph.addVertex(item.getClassName(), item.getVertexType());			} else if (vertex.isFinished() && !item.isApplication()) {				continue;			}						JavaClass javaClass = null;						// Figure out whether or not this is an application class,			// and whether it can be found in the repository or on the classpath.			if (item.isApplication()) {				vertex.setApplication(true);				vertex.setMissing(false);				vertex.setFinished(true); // This vertex is now authoritative				javaClass = item.getJavaClass();			} else {				vertex.setApplication(false);				try {					javaClass = Repository.lookupClass(item.getClassName());					vertex.setMissing(false);					vertex.setFinished(true); // This vertex is now authoritative				} catch (ClassNotFoundException e) {					lookupFailureCallback.reportMissingClass(e);					vertex.setMissing(true);					// We might see this class or interface later, so					// for now leave it unfinished				}			}						// Create inheritance edge			if (item.getSubType() != null) {				classHierarchyGraph.createEdge(item.getSubType(), vertex);			}						// If we know the representation of this type,			// add superclasses and superinterfaces			if (javaClass != null) {				String superclassName = javaClass.getSuperclassName();				if (superclassName != null) {					workList.add(new WorkListItem(							superclassName,							ClassHierarchyGraphVertexType.CLASS_VERTEX,							vertex));				}								String[] interfaceNameList = javaClass.getInterfaceNames();				for (int i = 0; i < interfaceNameList.length; ++i) {					workList.add(new WorkListItem(							interfaceNameList[i],							ClassHierarchyGraphVertexType.INTERFACE_VERTEX,							vertex));				}			}		}	}