@Override
        public boolean equals(final Object o) {
            if (this == o) {
                return true;
            }
            if (!(o instanceof Sub2)) {
                return false;
            }
            if (!super.equals(o)) {
                return false;
            }

            final Sub2 sub2 = (Sub2) o;

            return str != null
                    ? str.equals(sub2.str)
                    : sub2.str == null;
        }
Show a proper coloured unified diff of the two files
stroom-query/stroom-query-common/src/test/java/stroom/query/common/v2/TestSerialisation.java