Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Statement.java')
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Statement.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Statement.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Statement.java
index a67ad7f122..9bf46fc1a6 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Statement.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Statement.java
@@ -70,31 +70,31 @@ import org.eclipse.jdt.internal.compiler.parser.TerminalTokens;
* SuperConstructorInvocation
* </pre>
* </p>
- *
+ *
* @since 2.0
*/
public abstract class Statement extends ASTNode {
-
+
/**
* The leading comment, or <code>null</code> if none.
* Defaults to none.
- *
+ *
* @deprecated The leading comment feature was removed in 2.1.
*/
private String optionalLeadingComment = null;
-
+
/**
* Creates a new AST node for a statement owned by the given AST.
* <p>
* N.B. This constructor is package-private.
* </p>
- *
+ *
* @param ast the AST that is to own this node
*/
Statement(AST ast) {
super(ast);
}
-
+
/**
* Returns the leading comment string, including the starting
* and ending comment delimiters, and any embedded line breaks.
@@ -106,7 +106,7 @@ public abstract class Statement extends ASTNode {
* must end with a line delimiter (as per JLS 3.7), and must not contain
* line breaks.
* </p>
- *
+ *
* @return the comment string, or <code>null</code> if none
* @deprecated This feature was removed in the 2.1 release because it was
* only a partial, and inadequate, solution to the issue of associating
@@ -118,7 +118,7 @@ public abstract class Statement extends ASTNode {
* the statement's source range.
*/
public String getLeadingComment() {
- return optionalLeadingComment;
+ return this.optionalLeadingComment;
}
/**
@@ -146,7 +146,7 @@ public abstract class Statement extends ASTNode {
* </pre>
* </code>
* </p>
- *
+ *
* @param comment the comment string, or <code>null</code> if none
* @exception IllegalArgumentException if the comment string is invalid
* @deprecated This feature was removed in the 2.1 release because it was
@@ -191,14 +191,14 @@ public abstract class Statement extends ASTNode {
/**
* Copies the leading comment from the given statement.
- *
+ *
* @param source the statement that supplies the leading comment
* @since 2.1
*/
void copyLeadingComment(Statement source) {
setLeadingComment(source.getLeadingComment());
}
-
+
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
@@ -206,5 +206,5 @@ public abstract class Statement extends ASTNode {
int size = BASE_NODE_SIZE + 1 * 4 + stringSize(getLeadingComment());
return size;
}
-}
+}

Back to the top