@@ -34,37 +34,37 @@ val topLevelDri = org.jetbrains.dokka.links.DRI.Companion.getTopLevel
3434type SourceSetWrapper = DokkaConfiguration $DokkaSourceSet
3535type DokkaSourceSet = DokkaConfiguration .DokkaSourceSet
3636
37- extension [T ] (wrapper : SourceSetWrapper ):
37+ extension [T ] (wrapper : SourceSetWrapper )
3838 def toSet : JSet [DokkaConfiguration $DokkaSourceSet ] = JSet (wrapper)
3939 def toMap (value : T ): JMap [DokkaConfiguration $DokkaSourceSet , T ] = JMap (wrapper -> value)
4040
41- extension [T ] (wrapper : DokkaSourceSet ):
41+ extension [T ] (wrapper : DokkaSourceSet )
4242 // when named `toSet` fails in runtime -- TODO: create a minimal!
4343 // def toSet: JSet[DokkaConfiguration$DokkaSourceSet] = JSet(wrapper.asInstanceOf[SourceSetWrapper])
4444 def asSet : JSet [DokkaConfiguration $DokkaSourceSet ] = JSet (wrapper.asInstanceOf [SourceSetWrapper ])
4545 def asMap (value : T ): JMap [DokkaConfiguration $DokkaSourceSet , T ] = JMap (wrapper.asInstanceOf [SourceSetWrapper ] -> value)
4646
47- extension (sourceSets : JList [DokkaSourceSet ]):
47+ extension (sourceSets : JList [DokkaSourceSet ])
4848 def asDokka : JSet [SourceSetWrapper ] = sourceSets.asScala.toSet.asJava.asInstanceOf [JSet [SourceSetWrapper ]]
4949 def toDisplaySourceSet = sourceSets.asScala.map(ss => DisplaySourceSet (ss.asInstanceOf [SourceSetWrapper ])).toSet.asJava
5050
51- extension (sourceSets : Set [SourceSetWrapper ]):
51+ extension (sourceSets : Set [SourceSetWrapper ])
5252 def toDisplay = sourceSets.map(DisplaySourceSet (_)).asJava
5353
54- extension [V ] (a : WithExtraProperties [_]):
54+ extension [V ] (a : WithExtraProperties [_])
5555 def get (key : ExtraProperty .Key [_, V ]): V = a.getExtra().getMap().get(key).asInstanceOf [V ]
5656
57- extension [E <: WithExtraProperties [E ]] (a : E ):
57+ extension [E <: WithExtraProperties [E ]] (a : E )
5858 def put (value : ExtraProperty [_ >: E ]): E = a.withNewExtras(a.getExtra plus value)
5959
60- extension [V ] (map : JMap [SourceSetWrapper , V ]):
60+ extension [V ] (map : JMap [SourceSetWrapper , V ])
6161 def defaultValue : V = map.values.asScala.head
6262
63- extension [V ](jlist : JList [V ]):
63+ extension [V ](jlist : JList [V ])
6464 def ++ (other : JList [V ]): JList [V ] =
6565 Stream .of(jlist, other).flatMap(_.stream).collect(Collectors .toList())
6666
67- extension [V ](jset : JSet [V ]):
67+ extension [V ](jset : JSet [V ])
6868 def ++ (other : JSet [V ]): JSet [V ] =
6969 Stream .of(jset, other).flatMap(_.stream).collect(Collectors .toSet())
7070
0 commit comments