mirror of
https://github.com/apache/commons-collections.git
synced 2025-02-25 20:18:31 +00:00
Remove redundant type arguments.
This commit is contained in:
parent
e22859d093
commit
9f1dabed56
@ -46,7 +46,7 @@ public class SynchronizedQueue<E> extends SynchronizedCollection<E> implements Q
|
||||
* if queue is null
|
||||
*/
|
||||
public static <E> SynchronizedQueue<E> synchronizedQueue(final Queue<E> queue) {
|
||||
return new SynchronizedQueue<E>(queue);
|
||||
return new SynchronizedQueue<>(queue);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
@ -43,7 +43,7 @@ public class QueueUtilsTest {
|
||||
|
||||
@Test
|
||||
public void testSynchronizedQueue() {
|
||||
final Queue<Object> queue = QueueUtils.synchronizedQueue(new LinkedList<Object>());
|
||||
final Queue<Object> queue = QueueUtils.synchronizedQueue(new LinkedList<>());
|
||||
assertTrue("Returned object should be a SynchronizedQueue.", queue instanceof SynchronizedQueue);
|
||||
try {
|
||||
QueueUtils.synchronizedQueue(null);
|
||||
|
Loading…
x
Reference in New Issue
Block a user