You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cs...@apache.org on 2023/12/11 23:05:49 UTC
(activemq-openwire) branch main updated: NO-JIRA: Re-run generator to fix PartialCommandMarshaller
This is an automated email from the ASF dual-hosted git repository.
cshannon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-openwire.git
The following commit(s) were added to refs/heads/main by this push:
new a2014ce NO-JIRA: Re-run generator to fix PartialCommandMarshaller
a2014ce is described below
commit a2014ce51cabc021cd69c8314847a00e666e61c2
Author: Christopher L. Shannon (cshannon) <ch...@gmail.com>
AuthorDate: Mon Dec 11 16:45:04 2023 -0500
NO-JIRA: Re-run generator to fix PartialCommandMarshaller
---
.../openwire/codec/universal/PartialCommandMarshaller.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/openwire-core/src/main/java/org/apache/activemq/openwire/codec/universal/PartialCommandMarshaller.java b/openwire-core/src/main/java/org/apache/activemq/openwire/codec/universal/PartialCommandMarshaller.java
index ebe3f66..673348b 100644
--- a/openwire-core/src/main/java/org/apache/activemq/openwire/codec/universal/PartialCommandMarshaller.java
+++ b/openwire-core/src/main/java/org/apache/activemq/openwire/codec/universal/PartialCommandMarshaller.java
@@ -62,8 +62,8 @@ public class PartialCommandMarshaller extends BaseDataStreamMarshaller {
PartialCommand info = (PartialCommand) target;
- info.setData(tightUnmarshalConstByteArray(dataIn, bs, 0));
info.setCommandId(dataIn.readInt());
+ info.setData(tightUnmarshalConstByteArray(dataIn, bs, 0));
}
/**
@@ -99,8 +99,8 @@ public class PartialCommandMarshaller extends BaseDataStreamMarshaller {
PartialCommand info = (PartialCommand) source;
- tightMarshalByteArray2(info.getData(), dataOut, bs);
dataOut.writeInt(info.getCommandId());
+ tightMarshalByteArray2(info.getData(), dataOut, bs);
}
/**
@@ -112,8 +112,8 @@ public class PartialCommandMarshaller extends BaseDataStreamMarshaller {
PartialCommand info = (PartialCommand) source;
super.looseMarshal(wireFormat, source, dataOut);
- looseMarshalByteArray(wireFormat, info.getData(), dataOut);
dataOut.writeInt(info.getCommandId());
+ looseMarshalByteArray(wireFormat, info.getData(), dataOut);
}
/**
@@ -129,7 +129,7 @@ public class PartialCommandMarshaller extends BaseDataStreamMarshaller {
PartialCommand info = (PartialCommand) target;
- info.setData(looseUnmarshalByteArray(dataIn));
info.setCommandId(dataIn.readInt());
+ info.setData(looseUnmarshalByteArray(dataIn));
}
}