# | Line 26 | Line 26 | import java.util.concurrent.locks.LockSu | |
---|---|---|
26 | * filled one to the thread emptying the buffer. | |
27 | * <pre> {@code | |
28 | * class FillAndEmpty { | |
29 | < | * Exchanger<DataBuffer> exchanger = new Exchanger<DataBuffer>(); |
29 | > | * Exchanger<DataBuffer> exchanger = new Exchanger<>(); |
30 | * DataBuffer initialEmptyBuffer = ... a made-up type | |
31 | * DataBuffer initialFullBuffer = ... | |
32 | * |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |