Skip to content

Commit 050ab77

Browse files
committed
Fix: Missing javadocs for types in For comprehensions
1 parent ea5afe3 commit 050ab77

File tree

2 files changed

+331
-0
lines changed

2 files changed

+331
-0
lines changed

vavr/generator/Generator.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,10 +803,17 @@ def generateMainClasses(): Unit = {
803803
case 2 => BiFunctionType
804804
case _ => s"Function$i"
805805
}
806+
807+
val parameterDoc = (if (monadicTypesThatNeedParameter.contains(mtype)) {
808+
s"\n* @param <L> The left-hand type of all {@link $mtype}s"
809+
} else { "" })
810+
val typeDocs = (1 to i).gen(j => s"* @param <T$j> component type of {@link $mtype} number $j\n")
806811
val args = (1 to i).gen(j => s"? super T$j")(", ")
807812
xs"""
808813
/$javadoc
809814
* For-comprehension with ${i.numerus(mtype)}.
815+
$parameterDoc
816+
$typeDocs
810817
*/
811818
public static class $forClassName<$generics> {
812819

0 commit comments

Comments
 (0)