Skip to content

Commit

Permalink
Fix field serialization #65
Browse files Browse the repository at this point in the history
  • Loading branch information
timowest committed Nov 14, 2013
1 parent 34dd93c commit 646e5f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,9 @@ class ScalaDumpVisitor(settings: ConversionSettings) extends VoidVisitor[ScalaDu

v.getId.accept(this, arg)
if (v.getInit == null || modifier != "val ") {
if (v.getId.getName.endsWith("_")) {
printer.print(" ")
}
printer.print(": ")
n.getType.accept(this, arg)
}
Expand Down
7 changes: 7 additions & 0 deletions scalagen/src/test/scala/com/mysema/examples/Underscore.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.mysema.examples;

public class Underscore {

String prop_;

}

0 comments on commit 646e5f8

Please sign in to comment.