# | Line 134 | Line 134 | public class AtomicReferenceTest extends | |
---|---|---|
134 | * toString returns current value. | |
135 | */ | |
136 | public void testToString() { | |
137 | < | AtomicReference<Integer> ai = new AtomicReference<Integer>(one); |
137 | > | AtomicReference<Integer> ai = new AtomicReference<>(one); |
138 | assertEquals(one.toString(), ai.toString()); | |
139 | ai.set(two); | |
140 | assertEquals(two.toString(), ai.toString()); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |