# | Line 1828 | Line 1828 | public class JSR166TestCase extends Test | |
---|---|---|
1828 | } | |
1829 | } | |
1830 | ||
1831 | < | void assertImmutable(Object o) { |
1831 | > | void assertImmutable(final Object o) { |
1832 | if (o instanceof Collection) { | |
1833 | assertThrows( | |
1834 | UnsupportedOperationException.class, | |
# | Line 1836 | Line 1836 | public class JSR166TestCase extends Test | |
1836 | ((Collection) o).add(null);}}); | |
1837 | } | |
1838 | } | |
1839 | < | |
1839 | > | |
1840 | @SuppressWarnings("unchecked") | |
1841 | <T> T serialClone(T o) { | |
1842 | try { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |