@@ -95,8 +95,45 @@ def java_field_type(spec, domain):
9595
9696#---------------------------------------------------------------------------
9797
98+ def printFileHeader ():
99+ print """// NOTE: This -*- java -*- source code is autogenerated from the AMQP
100+ // specification!
101+ //
102+ // The contents of this file are subject to the Mozilla Public License
103+ // Version 1.1 (the "License"); you may not use this file except in
104+ // compliance with the License. You may obtain a copy of the License at
105+ // http://www.mozilla.org/MPL/
106+ //
107+ // Software distributed under the License is distributed on an "AS IS"
108+ // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
109+ // License for the specific language governing rights and limitations
110+ // under the License.
111+ //
112+ // The Original Code is RabbitMQ.
113+ //
114+ // The Initial Developers of the Original Code are LShift Ltd,
115+ // Cohesive Financial Technologies LLC, and Rabbit Technologies Ltd.
116+ //
117+ // Portions created before 22-Nov-2008 00:00:00 GMT by LShift Ltd,
118+ // Cohesive Financial Technologies LLC, or Rabbit Technologies Ltd
119+ // are Copyright (C) 2007-2008 LShift Ltd, Cohesive Financial
120+ // Technologies LLC, and Rabbit Technologies Ltd.
121+ //
122+ // Portions created by LShift Ltd are Copyright (C) 2007-2009 LShift
123+ // Ltd. Portions created by Cohesive Financial Technologies LLC are
124+ // Copyright (C) 2007-2009 Cohesive Financial Technologies
125+ // LLC. Portions created by Rabbit Technologies Ltd are Copyright
126+ // (C) 2007-2009 Rabbit Technologies Ltd.
127+ //
128+ // All Rights Reserved.
129+ //
130+ // Contributor(s): ______________________________________.
131+ //
132+ """
133+
98134def genJavaApi (spec ):
99135 def printHeader ():
136+ printFileHeader ()
100137 print """package com.rabbitmq.client;
101138
102139import java.io.IOException;
@@ -223,6 +260,7 @@ def printClassProperties(c):
223260
224261def genJavaImpl (spec ):
225262 def printHeader ():
263+ printFileHeader ()
226264 print """package com.rabbitmq.client.impl;
227265
228266import java.io.IOException;
0 commit comments