Added init keyword to builtins, maven projects and stdlib
This commit is contained in:
@@ -66,7 +66,7 @@ class KDocConfig() {
|
||||
*/
|
||||
public var includeProtected: Boolean = true
|
||||
|
||||
{
|
||||
init {
|
||||
// add some common defaults
|
||||
addPackageLink("http://docs.oracle.com/javase/6/docs/api/", "java", "org.w3c.dom", "org.xml.sax", "org.omg", "org.ietf.jgss")
|
||||
addPackageLink("http://kentbeck.github.com/junit/javadoc/latest/", "org.junit", "junit")
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ import org.jetbrains.kotlin.template.escapeHtml
|
||||
class Html2CompilerPlugin(private val compilerArguments: KDocArguments) : Doclet {
|
||||
|
||||
private val docOutputRoot: File
|
||||
{
|
||||
init {
|
||||
val docOutputDir = compilerArguments.docConfig.docOutputDir
|
||||
if (docOutputDir.isEmpty()) {
|
||||
throw IllegalArgumentException("empty doc output dir")
|
||||
|
||||
@@ -992,7 +992,7 @@ class KPackage(
|
||||
|
||||
class KType(val jetType: JetType, model: KModel, val klass: KClass?, val arguments: MutableList<KType> = ArrayList<KType>())
|
||||
: KNamed(klass?.name ?: jetType.toString()!!, model, jetType.getConstructor().getDeclarationDescriptor()!!) {
|
||||
{
|
||||
init {
|
||||
if (klass != null) {
|
||||
this.wikiDescription = klass.wikiDescription
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user