Get rid of deprecated annotations and modifiers in project code

This commit is contained in:
Denis Zharkov
2015-09-14 16:26:59 +03:00
parent 02aafe4262
commit 9c4564a5a6
204 changed files with 485 additions and 439 deletions
@@ -26,7 +26,6 @@ import org.jetbrains.jps.util.JpsPathUtil
import org.jetbrains.kotlin.utils.KotlinJavascriptMetadataUtils
import java.io.File
import java.util.ArrayList
import kotlin.platform.platformStatic
object JpsJsModuleUtils {
@@ -63,9 +62,9 @@ object JpsJsModuleUtils {
})
}
platformStatic
@JvmStatic
fun getOutputFile(outputDir: File, moduleName: String) = File(outputDir, moduleName + KotlinJavascriptMetadataUtils.JS_EXT)
platformStatic
@JvmStatic
fun getOutputMetaFile(outputDir: File, moduleName: String) = File(outputDir, moduleName + KotlinJavascriptMetadataUtils.META_JS_SUFFIX)
}
@@ -160,7 +160,7 @@ public class IncrementalCacheImpl(
dependents.add(cache)
}
TestOnly
@TestOnly
public fun dump(): String {
return maps.map { it.dump() }.join("\n\n")
}
@@ -821,7 +821,7 @@ private object PathCollectionExternalizer : DataExternalizer<Collection<String>>
private val File.normalizedPath: String
get() = FileUtil.toSystemIndependentName(canonicalPath)
TestOnly
@TestOnly
private fun <K : Comparable<K>, V> Map<K, V>.dumpMap(dumpValue: (V)->String): String =
StringBuilder {
append("{")
@@ -836,7 +836,7 @@ private fun <K : Comparable<K>, V> Map<K, V>.dumpMap(dumpValue: (V)->String): St
append("}")
}.toString()
TestOnly
@TestOnly
public fun <T : Comparable<T>> Collection<T>.dumpCollection(): String =
"[${sort().map(Any::toString).join(", ")}]"
@@ -64,7 +64,7 @@ public abstract class BasicMap<K : Comparable<K>, V>(
storage.close()
}
TestOnly
@TestOnly
public fun dump(): String {
return with(StringBuilder()) {
with(Printer(this)) {