Convert static PutDraftComment#side(Comment) method to method on Comment

Change-Id: I9c3956257f1187150d62a228d2ab91515960174d
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2016-09-21 13:42:57 +02:00
parent aaf6337a17
commit e2d2f654d6
4 changed files with 10 additions and 14 deletions

View File

@@ -59,6 +59,13 @@ public abstract class Comment {
}
}
public short side() {
if (side == Side.PARENT) {
return (short) (parent == null ? 0 : -parent.shortValue());
}
return 1;
}
@Override
public boolean equals(Object o) {
if (this == o) {