diff options
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/EmptyStatement.java')
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/EmptyStatement.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/EmptyStatement.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/EmptyStatement.java index 05f74f14b9..e0c09948dc 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/EmptyStatement.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/EmptyStatement.java @@ -30,24 +30,24 @@ public class EmptyStatement extends Statement { // Report an error if necessary public boolean complainIfUnreachable(FlowInfo flowInfo, BlockScope scope, boolean didAlreadyComplain) { - + // before 1.4, empty statements are tolerated anywhere if (scope.compilerOptions().complianceLevel < ClassFileConstants.JDK1_4) { return false; } return super.complainIfUnreachable(flowInfo, scope, didAlreadyComplain); } - + public void generateCode(BlockScope currentScope, CodeStream codeStream){ // no bytecode, no need to check for reachability or recording source positions } - + public StringBuffer printStatement(int tab, StringBuffer output) { return printIndent(tab, output).append(';'); } - + public void resolve(BlockScope scope) { - if ((bits & IsUsefulEmptyStatement) == 0) { + if ((this.bits & IsUsefulEmptyStatement) == 0) { scope.problemReporter().superfluousSemicolon(this.sourceStart, this.sourceEnd); } else { scope.problemReporter().emptyControlFlowStatement(this.sourceStart, this.sourceEnd); @@ -58,7 +58,7 @@ public class EmptyStatement extends Statement { visitor.visit(this, scope); visitor.endVisit(this, scope); } - + } |