8000 codegen.py: Sort fieldsToNullCheckInCons · ThinkLib/rabbitmq-java-client@6b15e54 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b15e54

Browse files
committed
codegen.py: Sort fieldsToNullCheckInCons
This makes Python 2 and Python 3 output the same file.
1 parent aab974d commit 6b15e54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codegen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ def constructors():
435435
argList = [ "%s %s" % (java_field_type(spec,a.domain),java_field_name(a.name)) for a in m.arguments ]
436436
print(" public %s(%s) {" % (java_class_name(m.name), ", ".join(argList)))
437437

438-
fieldsToNullCheckInCons = nullCheckedFields(spec, m)
438+
fieldsToNullCheckInCons = [f for f in nullCheckedFields(spec, m)]
439+
fieldsToNullCheckInCons.sort()
439440

440441
for f in fieldsToNullCheckInCons:
441442
print(" if (%s == null)" % (f))

0 commit comments

Comments
 (0)
0