Cleanup RC deprecations in compiler and plugin.
Original commit: 744a7a83f7
This commit is contained in:
@@ -830,7 +830,7 @@ private fun withSubtypes(
|
||||
typeFqName: FqName,
|
||||
caches: Sequence<IncrementalCacheImpl<*>>
|
||||
): Set<FqName> {
|
||||
val types = linkedListOf(typeFqName)
|
||||
val types = LinkedList(listOf(typeFqName))
|
||||
val subtypes = hashSetOf<FqName>()
|
||||
|
||||
while (types.isNotEmpty()) {
|
||||
|
||||
@@ -81,7 +81,7 @@ class JpsIncrementalCacheImpl(
|
||||
|
||||
private inner class DirtyInlineFunctionsMap(storageFile: File) : BasicStringMap<Collection<String>>(storageFile, StringCollectionExternalizer) {
|
||||
fun getEntries(): Map<JvmClassName, Collection<String>> =
|
||||
storage.keys.toMapBy(JvmClassName::byInternalName) { storage[it]!! }
|
||||
storage.keys.associateBy(JvmClassName::byInternalName) { storage[it]!! }
|
||||
|
||||
fun put(className: JvmClassName, changedFunctions: List<String>) {
|
||||
storage[className.internalName] = changedFunctions
|
||||
|
||||
@@ -53,7 +53,7 @@ abstract class AbstractLookupTrackerTest : AbstractIncrementalJpsTest(
|
||||
fail("File $actualFile unexpectedly contains multiline comments. In range ${matchResult.range} found: ${matchResult.value} in $text")
|
||||
}
|
||||
|
||||
val lines = text.lines().toArrayList()
|
||||
val lines = text.lines().toMutableList()
|
||||
|
||||
for ((line, lookupsFromLine) in lookupsFromFile.groupBy { it.position.line }) {
|
||||
val columnToLookups = lookupsFromLine.groupBy { it.position.column }.toList().sortedBy { it.first }
|
||||
|
||||
+3
-1
@@ -36,6 +36,8 @@ import java.io.File
|
||||
import java.io.PrintWriter
|
||||
import java.io.StringWriter
|
||||
import java.util.*
|
||||
import kotlin.comparisons.*
|
||||
|
||||
|
||||
// Set this to true if you want to dump all bytecode (test will fail in this case)
|
||||
val DUMP_ALL = System.getProperty("comparison.dump.all") == "true"
|
||||
@@ -53,7 +55,7 @@ fun getDirectoryString(dir: File, interestingPaths: List<String>): String {
|
||||
val listFiles = dir.listFiles()
|
||||
assertNotNull(listFiles)
|
||||
|
||||
val children = listFiles!!.sortedWith(compareBy ({ it.isDirectory }, { it.name } ))
|
||||
val children = listFiles!!.sortedWith(compareBy({ it.isDirectory }, { it.name }))
|
||||
for (child in children) {
|
||||
if (child.isDirectory) {
|
||||
p.println(child.name)
|
||||
|
||||
+2
-2
@@ -37,8 +37,8 @@ abstract class AbstractProtoComparisonTest : UsefulTestCase() {
|
||||
val oldClassFiles = compileFileAndGetClasses(testDataPath, testDir, "old")
|
||||
val newClassFiles = compileFileAndGetClasses(testDataPath, testDir, "new")
|
||||
|
||||
val oldClassMap = oldClassFiles.toMapBy { it.name }
|
||||
val newClassMap = newClassFiles.toMapBy { it.name }
|
||||
val oldClassMap = oldClassFiles.associateBy { it.name }
|
||||
val newClassMap = newClassFiles.associateBy { it.name }
|
||||
|
||||
val sb = StringBuilder()
|
||||
val p = Printer(sb)
|
||||
|
||||
Reference in New Issue
Block a user