- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 43 for coll (0.09 sec)
-
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/GroovyInteroperabilityTest.kt
@Test fun `can use closure with single argument call`() { val list = arrayListOf<Int>() closureOf<MutableList<Int>> { add(42) }.call(list) assertEquals(42, list.first()) } @Test fun `can use closure with single nullable argument call`() { var passedIntoClosure: Any? = "Something non null" closureOf<Any?> { passedIntoClosure = this }.call(null) assertNull(passedIntoClosure) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 10.1K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/DynamicCallProblemReporting.kt
* A problem is identified using a key object. * The implementation should be thread-safe and should support tracking problems in multiple threads, each with its own call stack. */ interface DynamicCallProblemReporting { /** * Begin tracking a new dynamic call on the call stack, with no problems reported in it initially.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/configurationcache/ConfigurationCacheBuildOperations.kt
call(object : CallableBuildOperation<T> { override fun description(): BuildOperationDescriptor.Builder = BuildOperationDescriptor .displayName("Load configuration cache state") .progressDisplayName("Loading configuration cache state") .details(LoadDetails) override fun call(context: BuildOperationContext): T =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 10:09:37 UTC 2024 - 3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/models/ProjectStateStore.kt
/** * If value has to be created, the original value is returned without (de)serialization * * This is delicate API, because the original value is returned only for the first call of this function. * As such, the call should probably be guarded with additional synchronization and memoization. * * Prefer [loadOrCreateValue] unless there is a special reason. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 6.3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/CrossProjectModelAccessTrackingClosure.kt
val numClosureArgs = delegate.maximumNumberOfParameters val finalArgs: Array<out Any> = args.take(numClosureArgs).map { trackingProjectAccess(crossProjectModelAccess, referrerProject, it) }.toTypedArray() delegate.call(*finalArgs) } override fun setDelegate(delegateObject: Any) { delegate.delegate = trackingProjectAccess(crossProjectModelAccess, referrerProject, delegateObject) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 3K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/parsing/BasicParsingTest.kt
) ) ) ] )""".trimIndent() results.assert(expected) } @Test fun `parses call chain`() { val results = parse("f(1).g(2).h(3)") val expected = """ FunctionCall [indexes: 10..14, line/column: 1/11..1/15, file: test] ( name = h
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 22:06:18 UTC 2024 - 19.1K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/JavaObjectSerializationCodec.kt
* - a `writeObject` method with no corresponding `readObject`; `writeObject` must eventually call [ObjectOutputStream.defaultWriteObject]; * - a `readObject` method with no corresponding `writeObject`; `readObject` must eventually call [ObjectInputStream.defaultReadObject]; * - a `writeReplace` method to allow the class to nominate a replacement to be written;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 11.4K bytes - Viewed (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild/codenarc/rules/IntegrationTestFixturesRule.kt
} } private fun checkOutputContains(call: MethodCallExpression) { val receiver = call.receiver!! if (receiver is PropertyExpression) { if (receiver.propertyAsString == "output") { val objectExpr = receiver.objectExpression!! checkIndirectOutputContains(objectExpr, call) } } } private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 2.6K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheBuildOperationsTest.kt
@Test fun `sets progress display name on store`() { // given: val buildOperationRunner = mock<BuildOperationRunner> { on { call<Unit>(any()) } doReturn Unit } val stateFile = testDirectoryProvider.file("stateFile") // when: buildOperationRunner.withStoreOperation("key") { StoreResult(stateFile, null)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 3.1K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/InputTrackingStateTest.kt
state.disableForCurrentThread() // <1> state.disableForCurrentThread() // <2> state.restoreForCurrentThread() // Revert call at <2>, restore to "disabled" state set by call at <1> assertFalse(state.isEnabledForCurrentThread()) state.restoreForCurrentThread() // Revert call at <1>, restore to "enabled" state assertTrue(state.isEnabledForCurrentThread()) } @Test
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 3.7K bytes - Viewed (0)