ARTEMIS-1616 OpenWire improvements
Refactored OpenWireMessageConverter::inbound into a private static method
This commit is contained in:
parent
c6b6dd95d1
commit
0387b1a842
|
@ -120,10 +120,14 @@ public class OpenWireMessageConverter implements MessageConverter<OpenwireMessag
|
|||
return null;
|
||||
}
|
||||
|
||||
// @Override
|
||||
public org.apache.activemq.artemis.api.core.Message inbound(Object message, CoreMessageObjectPools coreMessageObjectPools) throws Exception {
|
||||
public org.apache.activemq.artemis.api.core.Message inbound(Message message, CoreMessageObjectPools coreMessageObjectPools) throws Exception {
|
||||
return inbound(message, marshaller, coreMessageObjectPools);
|
||||
}
|
||||
|
||||
private static org.apache.activemq.artemis.api.core.Message inbound(final Message messageSend,
|
||||
final WireFormat marshaller,
|
||||
final CoreMessageObjectPools coreMessageObjectPools) throws Exception {
|
||||
|
||||
final Message messageSend = (Message) message;
|
||||
final CoreMessage coreMessage = new CoreMessage(-1, messageSend.getSize(), coreMessageObjectPools);
|
||||
|
||||
final String type = messageSend.getType();
|
||||
|
|
Loading…
Reference in New Issue