Skip to content

Commit 7fda580

Browse files
committed
Add generic type arguments to map
1 parent 06f69ad commit 7fda580

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/HierarchyBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.eclipse.core.runtime.CoreException;
2323
import org.eclipse.core.runtime.IProgressMonitor;
2424
import org.eclipse.core.runtime.OperationCanceledException;
25+
import org.eclipse.jdt.core.IJavaElement;
2526
import org.eclipse.jdt.core.IOrdinaryClassFile;
2627
import org.eclipse.jdt.core.IType;
2728
import org.eclipse.jdt.core.JavaModelException;
@@ -45,7 +46,6 @@
4546
import org.eclipse.jdt.internal.core.util.ResourceCompilationUnit;
4647
import org.eclipse.jdt.internal.core.util.Util;
4748

48-
@SuppressWarnings({"rawtypes", "unchecked"})
4949
public 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

Comments
 (0)