package com.tinkerpop.gremlin.structure.io.kryo;

/**
 * Represents the end of an edge list in a serialization stream.
 *
 * @author Stephen Mallette (http://stephen.genoprime.com)
 */
class EdgeTerminator {
    public static final EdgeTerminator INSTANCE = new EdgeTerminator();
    private final boolean terminal;

    private EdgeTerminator() {
        this.terminal = true;
    }

    @Override
    public boolean equals(final Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        final EdgeTerminator that = (EdgeTerminator) o;

        if (terminal != that.terminal) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return (terminal ? 1 : 0);
    }
}

@@ -605,20 +605,23 @@
         
-if (
+return 
 terminal
@@ -621,17 +621,17 @@
 erminal 
-!
+=
 = that.t
@@ -641,44 +641,8 @@
 inal
-) return false;%0A%0A        return true
 ;%0A  

Simplify an if statement.