HashSet expectedDiffs = new HashSet();
HashSet expectedDiffs = new HashSet(expected.length);
        public void checkExpected(ApiDifference[] expected)        {            HashSet expectedDiffs = new HashSet();            for (int i = 0; i < expected.length; i++) {                ApiDifference apiDifference = expected[i];                expectedDiffs.add(apiDifference);            }            for (Iterator it = expectedDiffs.iterator(); it.hasNext();) {                ApiDifference apiDifference = (ApiDifference) it.next();                TestCase.assertTrue("expected diff " + apiDifference + " was not generated",                        diffs.contains(apiDifference));            }            for (Iterator it = diffs.iterator(); it.hasNext();) {                ApiDifference apiDifference = (ApiDifference) it.next();                TestCase.assertTrue("unexpected diff " + apiDifference,                        expectedDiffs.contains(apiDifference));            }        }