1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-13 19:25: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) {
if (node.getFileLocation() == null) {
return false;
} else {
return commentNodeLocation.getStartingLineNumber() == node.getFileLocation()
.getEndingLineNumber();
}
IASTFileLocation fileLocation = node.getFileLocation();
return fileLocation != null &&
commentNodeLocation.getStartingLineNumber() == fileLocation.getEndingLineNumber();
}
@Override