Skip to content

Commit 134be12

Browse files
author
Steve Powell
committed
Correct name of appendPropertyDebugStringTo in generated Properties class(es).
1 parent d4e7e53 commit 134be12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codegen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,12 @@ def printWritePropertiesTo(c):
264264
print " if (this.%s != null) writer.write%s(this.%s);" % (jfName, jfClass, jfName)
265265
print " }"
266266

267-
def printAppendArgumentDebugStringTo(c):
267+
def printAppendPropertyDebugStringTo(c):
268268
appendList = [ "%s=\")\n .append(this.%s)\n .append(\""
269269
% (f.name, java_field_name(f.name))
270270
for f in c.fields ]
271271
print
272-
print " public void appendArgumentDebugStringTo(StringBuilder acc) {"
272+
print " public void appendPropertyDebugStringTo(StringBuilder acc) {"
273273
print " acc.append(\"(%s)\");" % (", ".join(appendList))
274274
print " }"
275275

@@ -386,7 +386,7 @@ def printSetter(fieldType, fieldName):
386386
printSetter(jType, jName)
387387

388388
printWritePropertiesTo(c)
389-
printAppendArgumentDebugStringTo(c)
389+
printAppendPropertyDebugStringTo(c)
390390
printPropertiesBuilderClass(c)
391391

392392
print " }"

0 commit comments

Comments
 (0)