javaTypeName returns the class name of a given Go type name. If the type name clashes with the package class name, an underscore is appended.
(n string)
| 376 | // the type name clashes with the package class name, an underscore is |
| 377 | // appended. |
| 378 | func (g *JavaGen) javaTypeName(n string) string { |
| 379 | if n == JavaClassName(g.Pkg) { |
| 380 | return n + "_" |
| 381 | } |
| 382 | return n |
| 383 | } |
| 384 | |
| 385 | func (g *JavaGen) javadoc(doc string) { |
| 386 | if doc == "" { |
no test coverage detected