package test.xstream; public abstract class MyAbstractBase { protected MyAbstractBase(final int[] array, final boolean bool, final String string) { iArray = (int[])array.clone(); b = bool; s = string; } private final int[] iArray; private final boolean b; private final String s; void zeroArray() { for (int i = 0; i < MyAbstractBase.this.iArray.length; i++) MyAbstractBase.this.iArray[i] = 0; } public boolean equals(Object rhs) { if (rhs != null && rhs instanceof MyAbstractBase == false) return false; if (this == rhs) return true; MyAbstractBase rhsObj = (MyAbstractBase)rhs; if (this.iArray.length != rhsObj.iArray.length) return false; for (int i = 0; i < this.iArray.length; i++) { if (this.iArray[i] != rhsObj.iArray[i]) return false; } if (this.b == rhsObj.b && this.s.compareTo(rhsObj.s) == 0) return true; return false; } }