summaryrefslogtreecommitdiff
path: root/lib/xsd/codegen/methoddef.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xsd/codegen/methoddef.rb')
-rw-r--r--lib/xsd/codegen/methoddef.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xsd/codegen/methoddef.rb b/lib/xsd/codegen/methoddef.rb
index 24a9168d58..15892fc5bf 100644
--- a/lib/xsd/codegen/methoddef.rb
+++ b/lib/xsd/codegen/methoddef.rb
@@ -34,7 +34,7 @@ class MethodDef
buf = ""
buf << dump_comment if @comment
buf << dump_method_def
- buf << dump_definition if @definition
+ buf << dump_definition if @definition and !@definition.empty?
buf << dump_method_def_end
buf
end