code cleanup

This commit is contained in:
Oliver Burn 2011-01-05 20:52:38 +11:00
parent c325a42519
commit a5bf1e329b
1 changed files with 3 additions and 7 deletions

View File

@ -58,12 +58,8 @@ public class LineColumn implements Comparable<LineColumn>
/** {@inheritDoc} */
public int compareTo(LineColumn aLineColumn)
{
if (this.getLine() != aLineColumn.getLine()) {
return this.getLine() - aLineColumn.getLine();
}
else {
return this.getColumn() - aLineColumn.getColumn();
}
return (this.getLine() != aLineColumn.getLine())
? this.getLine() - aLineColumn.getLine()
: this.getColumn() - aLineColumn.getColumn();
}
}