summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2013-05-29 15:48:26 (EDT)
committerCurtis Windatt2013-05-29 15:48:26 (EDT)
commit4c1c40c39bf4ef7f40947f109891be17ba006ffc (patch)
tree799502e00ba28fb53a41e432fcb269c067a823c8
parentb5c7f8cc76983f4bf3167f59dcd49bb1aada94fc (diff)
downloadeclipse.pde.ui-4c1c40c39bf4ef7f40947f109891be17ba006ffc.zip
eclipse.pde.ui-4c1c40c39bf4ef7f40947f109891be17ba006ffc.tar.gz
eclipse.pde.ui-4c1c40c39bf4ef7f40947f109891be17ba006ffc.tar.bz2
for an interface method that has @noreference tag Change-Id: Ic132d2925f1097bce5c23ce7d7fd4021794419cf
-rw-r--r--apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/provisional/scanner/TagScanner.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/provisional/scanner/TagScanner.java b/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/provisional/scanner/TagScanner.java
index 9ac6e2f..e627173 100644
--- a/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/provisional/scanner/TagScanner.java
+++ b/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/provisional/scanner/TagScanner.java
@@ -258,7 +258,16 @@ public class TagScanner {
*/
public boolean visit(MethodDeclaration node) {
if(isNotVisible(node.getModifiers())) {
- return false;
+ ASTNode parent = node.getParent();
+ if(parent instanceof TypeDeclaration) {
+ TypeDeclaration type = (TypeDeclaration) parent;
+ if(!type.isInterface()) {
+ return false;
+ }
+ }
+ else {
+ return false;
+ }
}
Javadoc doc = node.getJavadoc();
if(doc != null) {
@@ -339,7 +348,7 @@ public class TagScanner {
}
return true;
}
-
+
/**
* Determine if the flags contain private or package default flags
* @param flags