2222import org .eclipse .core .runtime .CoreException ;
2323import org .eclipse .core .runtime .IProgressMonitor ;
2424import org .eclipse .core .runtime .OperationCanceledException ;
25+ import org .eclipse .jdt .core .IJavaElement ;
2526import org .eclipse .jdt .core .IOrdinaryClassFile ;
2627import org .eclipse .jdt .core .IType ;
2728import org .eclipse .jdt .core .JavaModelException ;
4546import org .eclipse .jdt .internal .core .util .ResourceCompilationUnit ;
4647import org .eclipse .jdt .internal .core .util .Util ;
4748
48- @ SuppressWarnings ({"rawtypes" , "unchecked" })
4949public abstract class HierarchyBuilder {
5050 /**
5151 * The hierarchy being built.
@@ -66,7 +66,7 @@ public abstract class HierarchyBuilder {
6666 * for the types in the region (in other words, it contains
6767 * no supertypes outside the region).
6868 */
69- protected Map infoToHandle ;
69+ protected Map < IGenericType , IJavaElement > infoToHandle ;
7070 /*
7171 * The dot-separated fully qualified name of the focus type, or null of none.
7272 */
@@ -103,7 +103,7 @@ public HierarchyBuilder(TypeHierarchy hierarchy) throws JavaModelException {
103103 this ,
104104 new DefaultProblemFactory ());
105105 }
106- this .infoToHandle = new HashMap (5 );
106+ this .infoToHandle = new HashMap <> (5 );
107107 this .focusQualifiedName = focusType == null ? null : focusType .getFullyQualifiedName ();
108108 }
109109
0 commit comments