Lines 2439-2445
Link Here
|
2439 |
cd.constructorCall.sourceStart = cd.sourceStart; |
2439 |
cd.constructorCall.sourceStart = cd.sourceStart; |
2440 |
} |
2440 |
} |
2441 |
|
2441 |
|
2442 |
if (!this.diet |
2442 |
if (!(this.diet && this.dietInt == 0) |
2443 |
&& statements == null |
2443 |
&& statements == null |
2444 |
&& (constructorCall == null || constructorCall.isImplicitSuper())) { |
2444 |
&& (constructorCall == null || constructorCall.isImplicitSuper())) { |
2445 |
if (!containsComment(cd.bodyStart, this.endPosition)) { |
2445 |
if (!containsComment(cd.bodyStart, this.endPosition)) { |
Lines 4072-4083
Link Here
|
4072 |
// is a body when we reduce the method header |
4072 |
// is a body when we reduce the method header |
4073 |
if (!isNotAbstract) { //remember the fact that the method has a semicolon body |
4073 |
if (!isNotAbstract) { //remember the fact that the method has a semicolon body |
4074 |
md.modifiers |= ExtraCompilerModifiers.AccSemicolonBody; |
4074 |
md.modifiers |= ExtraCompilerModifiers.AccSemicolonBody; |
4075 |
} else { |
4075 |
} else if (!(this.diet && this.dietInt == 0) && statements == null && !containsComment(md.bodyStart, this.endPosition)) { |
4076 |
if (!this.diet && statements == null) { |
4076 |
md.bits |= ASTNode.UndocumentedEmptyBlock; |
4077 |
if (!containsComment(md.bodyStart, this.endPosition)) { |
|
|
4078 |
md.bits |= ASTNode.UndocumentedEmptyBlock; |
4079 |
} |
4080 |
} |
4081 |
} |
4077 |
} |
4082 |
// store the this.endPosition (position just before the '}') in case there is |
4078 |
// store the this.endPosition (position just before the '}') in case there is |
4083 |
// a trailing comment behind the end of the method |
4079 |
// a trailing comment behind the end of the method |