Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManju Mathew2013-07-24 13:32:05 +0000
committerDani Megert2013-07-24 13:37:16 +0000
commit100ddaa5694f03a7e942ff937ac9ff1e157c43b3 (patch)
tree18e6ca05fdd9ee5b0f8a41bc0b96826b7e0904c5
parentd0add1708b812c80384d88ef4eb52493b862187d (diff)
downloadeclipse.jdt.ui-100ddaa5694f03a7e942ff937ac9ff1e157c43b3.tar.gz
eclipse.jdt.ui-100ddaa5694f03a7e942ff937ac9ff1e157c43b3.tar.xz
eclipse.jdt.ui-100ddaa5694f03a7e942ff937ac9ff1e157c43b3.zip
Fixed bug 409520: [1.8][quick fix] "Add unimplemented methods" should not create stubs for default methodsI20130730-0800I20130724-1600
-rw-r--r--org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java b/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java
index 5b2be40713..0f0f334eb6 100644
--- a/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java
+++ b/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility2.java
@@ -547,8 +547,10 @@ public final class StubUtility2 {
if (impl == null || !Bindings.isVisibleInHierarchy(impl, currPack)) {
if (impl != null)
allMethods.remove(impl);
- toImplement.add(curr);
- allMethods.add(curr);
+ if (Modifier.isAbstract(curr.getModifiers())) {
+ toImplement.add(curr);
+ allMethods.add(curr);
+ }
}
}
ITypeBinding[] superInterfaces= typeBinding.getInterfaces();

Back to the top