- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for getOrPut (0.34 sec)
-
build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportAggregationWorkAction.kt
file.forEachLine(Charsets.UTF_8) { val (version, _, problem) = it.split(';') byCategory.getOrPut(toCategory(version, file.nameWithoutExtension)) { mutableMapOf() }.getOrPut(file.nameWithoutExtension) { mutableSetOf() }.add(problem) } } generateReport(byCategory) }
HTML - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Mon Jan 18 06:55:55 GMT 2021 - 3.4K bytes - Viewed (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt
try { collector.collectFrom(sourceFile).forEach { (version, incubating) -> versionToIncubating.getOrPut(version) { mutableSetOf() }.addAll(incubating) } } catch (e: Exception) { throw Exception("Unable to parse $sourceFile", e)
HTML - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Sun Jun 25 02:53:14 GMT 2023 - 12.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/tls/BasicTrustRootIndex.kt
private val subjectToCaCerts: Map<X500Principal, Set<X509Certificate>> init { val map = mutableMapOf<X500Principal, MutableSet<X509Certificate>>() for (caCert in caCerts) { map.getOrPut(caCert.subjectX500Principal) { mutableSetOf() }.add(caCert) } this.subjectToCaCerts = map } override fun findByIssuerAndSignature(cert: X509Certificate): X509Certificate? {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.8K bytes - Viewed (0) -
build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/DaemonTracker.kt
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Mon Jan 08 12:45:57 GMT 2024 - 3.4K bytes - Viewed (0) -
mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt
private class ServersForTest { private val servers = mutableMapOf<String, MockWebServer>() private var started = false fun server(name: String): MockWebServer { return servers.getOrPut(name) { MockWebServer().also { if (started) it.start() } } } fun startAll() { started = true for (server in servers.values) { server.start()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 11 12:12:36 GMT 2024 - 4.1K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt
for (mapping in mappings) { require(!mapping.spansSections) val section = mapping.section val rangeStart = mapping.rangeStart val sectionList = result.getOrPut(section) { mutableListOf() } sectionList += when (mapping.type) { TYPE_MAPPED -> run { val deltaMapping = inlineDeltaOrNull(mapping)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8.2K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirImportOptimizer.kt
val usedImports = mutableMapOf<FqName, MutableSet<Name>>() val unresolvedNames = mutableSetOf<Name>() fun saveReferencedItem(importableName: FqName, referencedByName: Name) { usedImports.getOrPut(importableName) { hashSetOf() } += referencedByName } firFile.accept(object : FirVisitorVoid() { override fun visitElement(element: FirElement) { element.acceptChildren(this)
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Fri Apr 19 11:06:47 GMT 2024 - 24.2K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt
val result = HashMap<FirElement, MutableList<CFGNode<*>>>() fun addGraph(graph: ControlFlowGraph) { for (node in graph.nodes) { result.getOrPut(node.fir) { SmartList() }.add(node) if (node is CFGNodeWithSubgraphs<*>) { node.subGraphs.forEach(::addGraph) } } }
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Tue Apr 16 06:40:43 GMT 2024 - 22.9K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt
private val cache = ContainerUtil.createConcurrentWeakKeySoftValueMap<From, To>() inline fun <reified S : To> cache(key: From, calculation: () -> S): S { val value = cache.getOrPut(key, calculation) return value as? S ?: errorWithAttachment("Cannot cast ${value::class} to ${S::class}") { withEntry("value", value.toString()) } } }
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Thu Mar 28 09:06:28 GMT 2024 - 32.4K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
enableTls() val testHandler = object : Handler() { val calls = mutableMapOf<String, AtomicInteger>() override fun publish(record: LogRecord) { calls.getOrPut(record.loggerName) { AtomicInteger(0) } .incrementAndGet() } override fun flush() { } override fun close() { } }.apply {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 27K bytes - Viewed (1)