package com.github.b1uec0in.josaformatter;

/**
 * Created by Bae Yong-Ju on 2017-05-30.
 */
public class Pair<FIRST, SECOND> {

    public FIRST first;
    public SECOND second;

    public Pair(FIRST first, SECOND second) {
        this.first = first;
        this.second = second;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof Pair)) return false;
        Pair pair = (Pair) object;
        return this.first.equals(pair.first) &&
                this.second.equals(pair.first);
    }

}
@@ -284,16 +284,260 @@
 %0A    %7D%0A%0A
+    @Override%0A%09public int hashCode() %7B%0A%09%09final int prime = 31;%0A%09%09int result = 1;%0A%09%09result = prime * result + ((first == null) ? 0 : first.hashCode());%0A%09%09result = prime * result + ((second == null) ? 0 : second.hashCode());%0A%09%09return result;%0A%09%7D%0A%0A
     @Ove
@@ -761,21 +761,22 @@
 ls(pair.
-first
+second
 );%0A    %7D
@@ -776,10 +776,9 @@
 ;%0A    %7D%0A
-%0A
 %7D

fix improper equals implementation of Pair class