Skip to content

Commit 8f0db4a

Browse files
author
Matthias Radestock
committed
merge bug19111 into default
2 parents 2880c33 + 556c832 commit 8f0db4a

File tree

2 files changed

+51
-7
lines changed

2 files changed

+51
-7
lines changed

codegen.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
98134
def genJavaApi(spec):
99135
def printHeader():
136+
printFileHeader()
100137
print """package com.rabbitmq.client;
101138
102139
import java.io.IOException;
@@ -223,6 +260,7 @@ def printClassProperties(c):
223260

224261
def genJavaImpl(spec):
225262
def printHeader():
263+
printFileHeader()
226264
print """package com.rabbitmq.client.impl;
227265
228266
import java.io.IOException;

src/com/rabbitmq/client/impl/ClientVersion.java.in

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// The contents of this -*- java -*- file are subject to the Mozilla Public License
1+
// The contents of this file are subject to the Mozilla Public License
22
// Version 1.1 (the "License"); you may not use this file except in
33
// compliance with the License. You may obtain a copy of the License at
44
// http://www.mozilla.org/MPL/
@@ -10,13 +10,19 @@
1010
//
1111
// The Original Code is RabbitMQ.
1212
//
13-
// The Initial Developers of the Original Code are LShift Ltd.,
14-
// Cohesive Financial Technologies LLC., and Rabbit Technologies Ltd.
13+
// The Initial Developers of the Original Code are LShift Ltd,
14+
// Cohesive Financial Technologies LLC, and Rabbit Technologies Ltd.
1515
//
16-
// Portions created by LShift Ltd., Cohesive Financial Technologies
17-
// LLC., and Rabbit Technologies Ltd. are Copyright (C) 2007-2008
18-
// LShift Ltd., Cohesive Financial Technologies LLC., and Rabbit
19-
// Technologies Ltd.;
16+
// Portions created before 22-Nov-2008 00:00:00 GMT by LShift Ltd,
17+
// Cohesive Financial Technologies LLC, or Rabbit Technologies Ltd
18+
// are Copyright (C) 2007-2008 LShift Ltd, Cohesive Financial
19+
// Technologies LLC, and Rabbit Technologies Ltd.
20+
//
21+
// Portions created by LShift Ltd are Copyright (C) 2007-2009 LShift
22+
// Ltd. Portions created by Cohesive Financial Technologies LLC are
23+
// Copyright (C) 2007-2009 Cohesive Financial Technologies
24+
// LLC. Portions created by Rabbit Technologies Ltd are Copyright
25+
// (C) 2007-2009 Rabbit Technologies Ltd.
2026
//
2127
// All Rights Reserved.
2228
//

0 commit comments

Comments
 (0)