From 38273e6b3ce04186a6ffe13770672b324f0bc2e9 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 16 Nov 2021 02:16:44 +0100 Subject: [PATCH] Minor, remove comments in JvmContentRoots.kt, suppress unused The kdocs were almost self-evident, as opposed to the fact that JvmClasspathRoot is unused in the project, which could make it a victim of an innocent refactoring. --- .../kotlin/cli/jvm/config/JvmContentRoots.kt | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/config/JvmContentRoots.kt b/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/config/JvmContentRoots.kt index 629d1867bf4..f80768658bc 100644 --- a/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/config/JvmContentRoots.kt +++ b/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/config/JvmContentRoots.kt @@ -29,30 +29,19 @@ interface JvmClasspathRootBase : JvmContentRootBase { val isSdkRoot: Boolean } -/** - * JVM content root based on a physical file. - */ interface JvmContentRoot : JvmContentRootBase { val file: File } -/** - * JVM content root containing class files in a physical file system (for example a JAR file). - */ data class JvmClasspathRoot(override val file: File, override val isSdkRoot: Boolean) : JvmContentRoot, JvmClasspathRootBase { constructor(file: File) : this(file, false) } -/** - * JVM content root containing class files in a virutal file system. - */ +@Suppress("unused") // Might be useful for external tools which invoke kotlinc with their own file system, not based on java.io.File. data class VirtualJvmClasspathRoot(val file: VirtualFile, override val isSdkRoot: Boolean) : JvmClasspathRootBase { constructor(file: VirtualFile) : this(file, false) } -/** - * JVM content root in a physical file system that contains source files. - */ data class JavaSourceRoot(override val file: File, val packagePrefix: String?) : JvmContentRoot data class JvmModulePathRoot(override val file: File) : JvmContentRoot