diff options
| author | ssankaran | 2013-10-22 11:17:25 +0000 |
|---|---|---|
| committer | ssankaran | 2013-10-22 11:17:25 +0000 |
| commit | 56279d048bf630d57d8fac349861b864730cf774 (patch) | |
| tree | 510d4ccd809d6fad3a901bc6c7a405495072150d | |
| parent | b31cd8ccd51413655d3e805905e8dd7d1404f391 (diff) | |
| download | eclipse.jdt.core-56279d048bf630d57d8fac349861b864730cf774.tar.gz eclipse.jdt.core-56279d048bf630d57d8fac349861b864730cf774.tar.xz eclipse.jdt.core-56279d048bf630d57d8fac349861b864730cf774.zip | |
Follow ups to Bug 419748 - [1.8][dom ast] MethodDeclaration's
receiverType cannot be AnnotatableType
| -rw-r--r-- | org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodDeclaration.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodDeclaration.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodDeclaration.java index 25063f3614..e2eb52fa79 100644 --- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodDeclaration.java +++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodDeclaration.java @@ -39,7 +39,7 @@ import java.util.List; * ( Block | <b>;</b> ) * </pre> * <p> - * The ReceiverParameter is represented as: <code>AnnotatableType [ SimpleName <b>.</b> ] <b>this</b></code><br> + * The ReceiverParameter is represented as: <code>Type [ SimpleName <b>.</b> ] <b>this</b></code><br> * The FormalParameter is represented by a {@link SingleVariableDeclaration}. * </p> * <p> @@ -141,11 +141,11 @@ public class MethodDeclaration extends BodyDeclaration { new ChildListPropertyDescriptor(MethodDeclaration.class, "parameters", SingleVariableDeclaration.class, CYCLE_RISK); //$NON-NLS-1$ /** - * The "receiverType" structural property of this node type (child type: {@link AnnotatableType}) (added in JLS8 API). + * The "receiverType" structural property of this node type (child type: {@link Type}) (added in JLS8 API). * @since 3.9 BETA_JAVA8 */ public static final ChildPropertyDescriptor RECEIVER_TYPE_PROPERTY = - new ChildPropertyDescriptor(MethodDeclaration.class, "receiverType", AnnotatableType.class, OPTIONAL, NO_CYCLE_RISK); //$NON-NLS-1$ + new ChildPropertyDescriptor(MethodDeclaration.class, "receiverType", Type.class, OPTIONAL, NO_CYCLE_RISK); //$NON-NLS-1$ /** * The "receiverQualifier" structural property of this node type (child type: {@link SimpleName}) (added in JLS8 API). @@ -478,7 +478,7 @@ public class MethodDeclaration extends BodyDeclaration { if (get) { return getReceiverType(); } else { - setReceiverType((AnnotatableType) child); + setReceiverType((Type) child); return null; } } @@ -579,7 +579,7 @@ public class MethodDeclaration extends BodyDeclaration { result.setConstructor(isConstructor()); result.setName((SimpleName) getName().clone(target)); if (this.ast.apiLevel >= AST.JLS8) { - result.setReceiverType((AnnotatableType) ASTNode.copySubtree(target, getReceiverType())); + result.setReceiverType((Type) ASTNode.copySubtree(target, getReceiverType())); result.setReceiverQualifier((SimpleName) ASTNode.copySubtree(target, getReceiverQualifier())); } result.parameters().addAll( |
