src/share/classes/java/util/AbstractSet.java

Print this page
rev 4788 : Fix bunch of generics warnings

*** 86,96 **** if (o == this) return true; if (!(o instanceof Set)) return false; ! Collection c = (Collection) o; if (c.size() != size()) return false; try { return containsAll(c); } catch (ClassCastException unused) { --- 86,96 ---- if (o == this) return true; if (!(o instanceof Set)) return false; ! Collection<?> c = (Collection<?>) o; if (c.size() != size()) return false; try { return containsAll(c); } catch (ClassCastException unused) {