summaryrefslogtreecommitdiff
path: root/gentools/templ.java/MethodBodyClass.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'gentools/templ.java/MethodBodyClass.tmpl')
-rw-r--r--gentools/templ.java/MethodBodyClass.tmpl7
1 files changed, 2 insertions, 5 deletions
diff --git a/gentools/templ.java/MethodBodyClass.tmpl b/gentools/templ.java/MethodBodyClass.tmpl
index 83973bc498..e44a26c84f 100644
--- a/gentools/templ.java/MethodBodyClass.tmpl
+++ b/gentools/templ.java/MethodBodyClass.tmpl
@@ -84,16 +84,13 @@ ${METHOD_ID_INIT}
return buf.toString();
}
- public static AMQFrame createAMQFrame(int _channelId, byte major, byte minor
+ public static ${CLASS}${METHOD}Body createMethodBody(byte major, byte minor
%{FLIST} ${mb_field_parameter_list}
)
{
${CLASS}${METHOD}Body bodyFrame = new ${CLASS}${METHOD}Body(major, minor);
%{FLIST} ${mb_field_body_initialize}
- AMQFrame frame = new AMQFrame();
- frame.channel = _channelId;
- frame.bodyFrame = bodyFrame;
- return frame;
+ return bodyFrame;
}
}