public static boolean equals(Comment comment1, Comment comment2) {
if (comment1 == comment2) return true;
if (comment2 == null || comment1.getClass() != comment2.getClass()) return false;
Comment that = comment2;
if (comment1.line != that.line) return false;
if (comment1.id != null ? !comment1.id.equals(that.id) : that.id != null) return false;
if (comment1.inReplyTo != null ? !comment1.inReplyTo.equals(that.inReplyTo) : that.inReplyTo != null) return false;
if (comment1.message != null ? !comment1.message.equals(that.message) : that.message != null) return false;