- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for varargs (0.03 sec)
-
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/TypeMetaData.java
public int getArrayDimensions() { return arrayDimensions + (varargs ? 1 : 0); } public TypeMetaData setArrayDimensions(int arrayDimensions) { this.arrayDimensions = arrayDimensions; return this; } public boolean isVarargs() { return varargs; } public TypeMetaData setVarargs() { this.varargs = true; return this; }
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 6.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
verify(tree).send((Request<CommonServerMessageBlockResponse>) isNull()); } @Test @DisplayName("send with explicit null varargs propagates exception from implementation") void send_nullVarargsArray_throws() throws Exception { // Arrange: passing explicit null vararg array is edge scenario when(tree.send(eq(request), isNull())).thenThrow(new CIFSException("null params")); // Act + Assert
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java
assertTrue("addAll(n, containsNull) should return true", getList().addAll(0, containsNull)); /* * We need (E) to force interpretation of null as the single element of a * varargs array, not the array itself */ expectAdded(0, (E) null); } @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX) @CollectionFeature.Require(absent = ALLOWS_NULL_VALUES)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 6.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java
assertTrue("addAll(n, containsNull) should return true", getList().addAll(0, containsNull)); /* * We need (E) to force interpretation of null as the single element of a * varargs array, not the array itself */ expectAdded(0, (E) null); } @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX) @CollectionFeature.Require(absent = ALLOWS_NULL_VALUES)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 6.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java
assertTrue("addAll(containsNull) should return true", collection.addAll(containsNull)); /* * We need (E) to force interpretation of null as the single element of a * varargs array, not the array itself */ expectAdded((E) null); } @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES) public void testAddAll_nullUnsupported() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7.9K bytes - Viewed (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-dsl-upstream-candidates.kt
val out = ByteArrayOutputStream() exec { isIgnoreExitValue = ignoreExitValue commandLine(*args) standardOutput = out this.workingDir = workingDir } return out.toString().trim() } fun ExecOperations.execAndGetStdoutIgnoringError(vararg args: String) = execAndGetStdout(File("."), true, *args)
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Mon May 19 11:33:57 UTC 2025 - 965 bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RetryConnectionTest.kt
} private fun createSocketWithEnabledProtocols(vararg tlsVersions: TlsVersion): SSLSocket = (handshakeCertificates.sslSocketFactory().createSocket() as SSLSocket).apply { enabledProtocols = javaNames(*tlsVersions) } private fun assertEnabledProtocols( socket: SSLSocket, vararg required: TlsVersion, ) {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RecordedResponse.kt
).isTrue() } fun assertFailure(vararg messages: String) = apply { assertThat(failure, "No failure found").isNotNull() assertThat(messages).contains(failure!!.message) } fun assertFailureMatches(vararg patterns: String) = apply { val message = failure!!.message!! assertThat(
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.3K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingCookieJar.kt
private val responseCookies: Deque<List<Cookie>> = ArrayDeque() fun enqueueRequestCookies(vararg cookies: Cookie) { requestCookies.add(cookies.toList()) } fun takeResponseCookies(): List<Cookie> = responseCookies.removeFirst() fun assertResponseCookies(vararg cookies: String?) { assertThat(takeResponseCookies().map(Cookie::toString)).containsExactly(*cookies) }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.5K bytes - Viewed (0) -
buildSrc/src/main/kotlin/Osgi.kt
import org.gradle.kotlin.dsl.dependencies import org.gradle.kotlin.dsl.findByType import org.gradle.kotlin.dsl.get import org.gradle.kotlin.dsl.getByName import org.gradle.kotlin.dsl.named fun Project.applyOsgi(vararg bndProperties: String) { plugins.withId("org.jetbrains.kotlin.jvm") { applyOsgi("jar", "osgiApi", bndProperties) } } private fun Project.applyOsgi( jarTaskName: String,
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Aug 01 08:06:31 UTC 2025 - 5.1K bytes - Viewed (0)