Skip to content

Commit a640f7b

Browse files
author
Rob Harrop
committed
Merge with default
2 parents 2e53721 + f19c2b8 commit a640f7b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

codegen.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,9 @@ def printSetter(fieldType, fieldName):
370370

371371
print " }"
372372

373+
# default constructor
374+
print " public %sProperties() {}" % (jClassName)
375+
373376
#class properties
374377
print " public int getClassId() { return %i; }" % (c.index)
375378
print " public String getClassName() { return \"%s\"; }" % (c.name)

test/src/com/rabbitmq/examples/FileProducer.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ public static void main(String[] args) {
8282
Map<String, Object> headers = new HashMap<String, Object>();
8383
headers.put("filename", filename);
8484
headers.put("length", (int) f.length());
85-
BasicProperties props = new BasicProperties(null, null, headers, null,
86-
null, null, null, null,
87-
null, null, null, null,
88-
null, null);
85+
BasicProperties props = new BasicProperties();
86+
props.setHeaders(headers);
8987
ch.basicPublish(exchange, routingKey, props, body);
9088
System.out.println(" done.");
9189
}

0 commit comments

Comments
 (0)