Skip to content

Commit

Permalink
生成struct时同时生成不带optional的类
Browse files Browse the repository at this point in the history
  • Loading branch information
DevotedTangLiu committed Jun 3, 2016
1 parent 5ad31ae commit f8da334
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@ class JavaGenerator extends CodeGenerator {
}
}
}

public static {struct.name}NoOptional copy(Object obj)<block>
return com.isuwang.scala.dbc.utils.ThriftBeanConverter.copy(obj, {struct.name}NoOptional.class);
</block>

</block>
</div>
}
Expand Down

0 comments on commit f8da334

Please sign in to comment.