Skip to content

Commit 9bb8fc3

Browse files
committed
Fix ECJ: The type parameter Packet is hiding the type c.s.m.j.i.Packet
1 parent 481838a commit 9bb8fc3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mq/main/mq-broker/broker-core/src/main/java/com/sun/messaging/jmq/jmsserver/service/imq/IMQDualThreadConnection.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2000, 2020 Oracle and/or its affiliates. All rights reserved.
3-
* Copyright (c) 2021 Contributors to the Eclipse Foundation
3+
* Copyright (c) 2021, 2024 Contributors to the Eclipse Foundation
44
*
55
* This program and the accompanying materials are made available under the
66
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -45,16 +45,16 @@
4545
import com.sun.messaging.jmq.util.log.Logger;
4646

4747
public class IMQDualThreadConnection extends IMQBasicConnection implements DirectBrokerConnection {
48-
class DummyQueue<Packet> implements HandOffQueue<Packet> {
48+
class DummyQueue<P extends Packet> implements HandOffQueue<P> {
4949
@Override
50-
public Packet take() throws InterruptedException {
50+
public P take() throws InterruptedException {
5151
// does nothing
5252
return null;
5353
}
5454

5555
@Override
56-
public void put(Packet p) throws InterruptedException {
57-
processReadPacket((com.sun.messaging.jmq.io.Packet) p);
56+
public void put(P p) throws InterruptedException {
57+
processReadPacket(p);
5858
}
5959
}
6060

0 commit comments

Comments
 (0)