1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-15 04:05:38 +02:00

Code streamlining.

This commit is contained in:
Sergey Prigogin 2013-05-13 18:01:29 -07:00
parent e543e223a4
commit 12d8ae41e2

View file

@ -83,12 +83,9 @@ public class ASTCommenter {
} }
private boolean isCommentOnSameLine(IASTNode node) { private boolean isCommentOnSameLine(IASTNode node) {
if (node.getFileLocation() == null) { IASTFileLocation fileLocation = node.getFileLocation();
return false; return fileLocation != null &&
} else { commentNodeLocation.getStartingLineNumber() == fileLocation.getEndingLineNumber();
return commentNodeLocation.getStartingLineNumber() == node.getFileLocation()
.getEndingLineNumber();
}
} }
@Override @Override