File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
main/scala/com/typesafe/genjavadoc
expected_output/basic/akka/rk/buh/is/it Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,20 @@ import java.io.File
55
66trait Output { this : TransformCake ⇒
77
8+ private val Tparam = " (.*@tparam )(\\ S+)( .*)" .r
9+
810 def outputBase : File
911
1012 def write (out : Out , c : ClassInfo ) {
1113 // TODO @param should be transformed to constructor comments
12- c.comment foreach (line => out(line.replace(" @param" , " param: " )))
14+ c.comment foreach {line =>
15+ val replaced = line.replace(" @param" , " param: " ) match {
16+ case Tparam (_, param, desc) ⇒
17+ s " * @param < $param> $desc"
18+ case x ⇒ x
19+ }
20+ out(replaced)
21+ }
1322 out(s " ${c.sig} { " )
1423 out.indent()
1524 for (m ← c.members)
Original file line number Diff line number Diff line change 11package akka .rk .buh .is .it ;
2+ /**
3+ * @param <A> I am a type parameter description
4+ */
25public interface Y <A extends java .lang .Object > {
36}
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ package buh.is.it
88import scala .annotation .varargs
99import scala .concurrent .duration .FiniteDuration
1010
11+ /**
12+ * @tparam A I am a type parameter description
13+ */
1114trait Y [A ] {
1215 // def pi = 3.14
1316}
You can’t perform that action at this time.
0 commit comments