You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by df...@apache.org on 2021/04/09 20:12:16 UTC
[activemq-nms-openwire-generator] 11/32:
https://issues.apache.org/activemq/browse/AMQNET-193
This is an automated email from the ASF dual-hosted git repository.
dfoulks pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-nms-openwire-generator.git
commit 3ae3b3915b13f004ca86ba9430e26bc85000765d
Author: Timothy A. Bish <ta...@apache.org>
AuthorDate: Fri Oct 9 14:47:59 2009 +0000
https://issues.apache.org/activemq/browse/AMQNET-193
Update the Message command generation to allow the ReadOnly methods to be overridden.
---
.../nms/openwire/tool/commands/MessageGenerator.java | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java b/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java
index cfb3526..356b133 100644
--- a/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java
+++ b/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageGenerator.java
@@ -30,8 +30,8 @@ public class MessageGenerator extends CommandClassGenerator {
super.generateProperties(out);
- out.println(" protected bool readOnlyMsgProperties;");
- out.println(" protected bool readOnlyMsgBody;");
+ out.println(" private bool readOnlyMsgProperties;");
+ out.println(" private bool readOnlyMsgBody;");
out.println("");
out.println(" public const int DEFAULT_MINIMUM_MESSAGE_SIZE = 1024;");
out.println("");
@@ -42,16 +42,16 @@ public class MessageGenerator extends CommandClassGenerator {
super.generatePropertyAccessors(out);
- out.println(" public bool ReadOnlyProperties" );
+ out.println(" public virtual bool ReadOnlyProperties" );
out.println(" {");
- out.println(" get { return readOnlyMsgProperties; }" );
- out.println(" set { readOnlyMsgProperties = value; }");
+ out.println(" get { return this.readOnlyMsgProperties; }" );
+ out.println(" set { this.readOnlyMsgProperties = value; }");
out.println(" }");
out.println("");
- out.println(" public bool ReadOnlyBody" );
+ out.println(" public virtual bool ReadOnlyBody" );
out.println(" {");
- out.println(" get { return readOnlyMsgBody; }" );
- out.println(" set { readOnlyMsgBody = value; }");
+ out.println(" get { return this.readOnlyMsgBody; }" );
+ out.println(" set { this.readOnlyMsgBody = value; }");
out.println(" }");
out.println("");
}