- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 86 for require (0.18 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt
} private fun checkSupportResponse( name: String, response: Response?, ) { response?.apply { require(networkResponse == null) { "$name.networkResponse != null" } require(cacheResponse == null) { "$name.cacheResponse != null" } require(priorResponse == null) { "$name.priorResponse != null" } } } fun Response.Builder.commonPriorResponse(priorResponse: Response?) = apply {
Plain Text - Registered: Fri Apr 19 11:42:09 GMT 2024 - Last Modified: Mon Apr 15 13:24:48 GMT 2024 - 5.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CacheControl.kt
apply { val maxAgeSeconds = maxAge.inWholeSeconds require(maxAgeSeconds >= 0) { "maxAge < 0: $maxAgeSeconds" } this.maxAgeSeconds = maxAgeSeconds.commonClampToInt() } fun maxStale(maxStale: Duration) = apply { val maxStaleSeconds = maxStale.inWholeSeconds require(maxStaleSeconds >= 0) { "maxStale < 0: $maxStaleSeconds" }
Plain Text - Registered: Fri Apr 19 11:42:09 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 10K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt
flags: Int, ) { if (type != TYPE_WINDOW_UPDATE && logger.isLoggable(FINE)) { logger.fine(frameLog(false, streamId, length, type, flags)) } require(length <= maxFrameSize) { "FRAME_SIZE_ERROR length > $maxFrameSize: $length" } require(streamId and 0x80000000.toInt() == 0) { "reserved bit set: $streamId" } sink.writeMedium(length) sink.writeByte(type and 0xff) sink.writeByte(flags and 0xff)
Plain Text - Registered: Fri Apr 19 11:42:09 GMT 2024 - Last Modified: Wed Apr 17 05:15:48 GMT 2024 - 10.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Dispatcher.kt
* * If more than [maxRequests] requests are in flight when this is invoked, those requests will * remain in flight. */ @get:Synchronized var maxRequests = 64 set(maxRequests) { require(maxRequests >= 1) { "max < 1: $maxRequests" } synchronized(this) { field = maxRequests } promoteAndExecute() } /**
Plain Text - Registered: Fri Apr 19 11:42:09 GMT 2024 - Last Modified: Wed Apr 17 05:15:48 GMT 2024 - 8.7K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirResolveExtensionInfoProvider.kt
} } private class KtFirResolveExtensionScope( private val analysisSession: KtFirAnalysisSession, private val tools: List<LLFirResolveExtensionTool>, ) : KtScope { init { require(tools.isNotEmpty()) } override val token: KtLifetimeToken get() = analysisSession.token override fun getCallableSymbols(nameFilter: KtScopeNameFilter): Sequence<KtCallableSymbol> = withValidityAssertion {
Plain Text - Registered: Fri Apr 19 08:18:09 GMT 2024 - Last Modified: Wed Apr 17 17:23:42 GMT 2024 - 5.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt
require(keepAliveDuration > 0L) { "keepAliveDuration <= 0: $keepAliveDuration" } } fun idleConnectionCount(): Int { return connections.count { synchronized(it) { it.calls.isEmpty() } } } fun connectionCount(): Int { return connections.size } /**
Plain Text - Registered: Fri Apr 19 11:42:09 GMT 2024 - Last Modified: Wed Apr 17 05:15:48 GMT 2024 - 16.2K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCompilerFacility.kt
// Stubbed top-level function IR symbols (from other source files in the module) require a parent facade class to be // generated, which requires a container source to be provided. Without a facade class, function IR symbols will have // an `IrExternalPackageFragment` parent, which trips up code generation during IR lowering.
Plain Text - Registered: Fri Apr 19 08:18:09 GMT 2024 - Last Modified: Thu Apr 18 12:36:23 GMT 2024 - 31.9K bytes - Viewed (1) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt
shortenOptions: ShortenOptions, classShortenStrategy: (KtClassLikeSymbol) -> ShortenStrategy, callableShortenStrategy: (KtCallableSymbol) -> ShortenStrategy ): ShortenCommand { require(!file.isCompiled) { "No sense to collect references for shortening in compiled file $file" } val declarationToVisit = file.findSmallestElementOfTypeContainingSelection<KtDeclaration>(selection) ?: file
Plain Text - Registered: Fri Apr 19 08:18:09 GMT 2024 - Last Modified: Wed Apr 17 17:23:40 GMT 2024 - 69.5K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt
} return firLeaf } private fun computeCommonParent(statements: List<KtElement>): FirElement { require(statements.isNotEmpty()) val parent = statements[0].parent as KtElement for (i in 1..<statements.size) { require(statements[i].parent == parent) } val firContainer = collectUseSiteContainers(parent, firResolveSession)?.lastOrNull()
Plain Text - Registered: Fri Apr 19 08:18:09 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/components/KtFirCompletionCandidateChecker.kt
} context(KtAnalysisSession) override fun computeApplicability(candidate: KtCallableSymbol): KtExtensionApplicabilityResult { require(candidate is KtFirSymbol<*>) analysisSession.withValidityAssertion { val firSymbol = candidate.firSymbol as FirCallableSymbol<*> firSymbol.lazyResolveToPhase(FirResolvePhase.STATUS)
Plain Text - Registered: Fri Apr 19 08:18:09 GMT 2024 - Last Modified: Wed Apr 17 17:23:43 GMT 2024 - 9.4K bytes - Viewed (0)