Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSasikanth Bharadwaj2017-04-05 05:03:42 +0000
committerSasikanth Bharadwaj2017-04-05 05:03:42 +0000
commitc359a719bbc1fff7132cb46a27e7b625c2fe5262 (patch)
tree844868677351085f175bff75ef7cb070b1186da9
parent14b1d11c535e007b5bf634dae4834f6a2e81a29d (diff)
downloadeclipse.jdt.core-c359a719bbc1fff7132cb46a27e7b625c2fe5262.tar.gz
eclipse.jdt.core-c359a719bbc1fff7132cb46a27e7b625c2fe5262.tar.xz
eclipse.jdt.core-c359a719bbc1fff7132cb46a27e7b625c2fe5262.zip
bug 513790 Compiler warnings in I20170316-2000 after moving to M6I20170405-0300I20170405-0200I20170405-0130
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/ChangeCollector.java5
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/TypeHierarchy.java3
2 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/ChangeCollector.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/ChangeCollector.java
index c47fd85d0e..fce7e7491a 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/ChangeCollector.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/ChangeCollector.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -368,7 +368,8 @@ public class ChangeCollector {
private void getAllTypesFromHierarchy(JavaElement element, ArrayList allTypes) {
switch (element.getElementType()) {
case IJavaElement.COMPILATION_UNIT:
- ArrayList types = this.hierarchy.files.get(element);
+ IOpenable o = (IOpenable) element;
+ ArrayList types = this.hierarchy.files.get(o);
if (types != null) {
allTypes.addAll(types);
}
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/TypeHierarchy.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/TypeHierarchy.java
index aefb34182f..43aa70c540 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/TypeHierarchy.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/TypeHierarchy.java
@@ -1042,7 +1042,8 @@ protected boolean isAffectedByOpenable(IJavaElementDelta delta, IJavaElement ele
} else if (element instanceof ClassFile) {
switch (delta.getKind()) {
case IJavaElementDelta.REMOVED:
- return this.files.get(element) != null;
+ IOpenable o = (IOpenable) element;
+ return this.files.get(o) != null;
case IJavaElementDelta.ADDED:
IType type = ((ClassFile)element).getType();
String typeName = type.getElementName();

Back to the top