- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 101 for get_default (0.06 seconds)
-
guava-tests/test/com/google/common/math/IntMathTest.java
return big.bitLength() <= 31; } @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNullPointers() { NullPointerTester tester = new NullPointerTester(); tester.setDefault(int.class, 1); tester.testAllPublicStaticMethods(IntMath.class); } @GwtIncompatible // isPrime is GWT-incompatible public void testIsPrime() { // Defer correctness tests to Long.isPrime
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 24.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
@SuppressWarnings("TruthGetOrDefault") // We are testing our implementation of getOrDefault. public void testGetOrDefault() { LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder().concurrencyLevel(1).initialCapacity(1)); map.put(1, 1); assertThat(map.getOrDefault(1, 2)).isEqualTo(1); assertThat(map.getOrDefault(2, 2)).isEqualTo(2); } public void testPutCausesExpansion() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 12 00:25:21 GMT 2025 - 117.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
@SuppressWarnings("TruthGetOrDefault") // We are testing our implementation of getOrDefault. public void testGetOrDefault() { LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder().concurrencyLevel(1).initialCapacity(1)); map.put(1, 1); assertThat(map.getOrDefault(1, 2)).isEqualTo(1); assertThat(map.getOrDefault(2, 2)).isEqualTo(2); } public void testPutCausesExpansion() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 12 00:25:21 GMT 2025 - 115.9K bytes - Click Count (0) -
api/go1.21.txt
pkg log/slog, func NewRecord(time.Time, Level, string, uintptr) Record #56345 pkg log/slog, func NewTextHandler(io.Writer, *HandlerOptions) *TextHandler #59339 pkg log/slog, func SetDefault(*Logger) #56345 pkg log/slog, func String(string, string) Attr #56345 pkg log/slog, func StringValue(string) Value #56345 pkg log/slog, func Time(string, time.Time) Attr #56345
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Aug 07 09:39:17 GMT 2023 - 25.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java
if (phase == null) { continue; } String tmpResolvedPhase = plan.aliases().getOrDefault(phase, phase); String resolvedPhase = tmpResolvedPhase.startsWith(AT) ? tmpResolvedPhase.substring(AT.length())
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Oct 16 06:12:36 GMT 2025 - 55.1K bytes - Click Count (0) -
fastapi/applications.py
] = {} if exception_handlers is None else dict(exception_handlers) self.exception_handlers.setdefault(HTTPException, http_exception_handler) self.exception_handlers.setdefault( RequestValidationError, request_validation_exception_handler ) self.exception_handlers.setdefault( WebSocketRequestValidationError,Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 176.3K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Oct 27 13:24:03 GMT 2025 - 78.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
} } @AfterEach fun tearDown() { // TODO reenable after https://github.com/square/okhttp/issues/8206 // fileSystem.checkNoOpenFiles() cache.close() java.net.Authenticator.setDefault(null) } @Test fun get() { server.enqueue(MockResponse(body = "ABCDE")) val call = client.newCall(Request(server.url("/foo"))) val response = call.execute()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Nov 01 12:18:11 GMT 2025 - 67.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
} public <T> void testNulls() { new NullPointerTester().testAllPublicStaticMethods(TypeToken.class); new NullPointerTester() .setDefault(TypeParameter.class, new TypeParameter<T>() {}) .testAllPublicInstanceMethods(TypeToken.of(String.class)); } private static class Assignability<From, To> { boolean isAssignable() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 89K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
clientTestRule .newClientBuilder() .cache(cache) .cookieJar(JavaNetCookieJar(cookieManager)) .build() } @AfterEach fun tearDown() { ResponseCache.setDefault(null) cache.delete() } /** * Test that response caching is consistent with the RI and the spec. * http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.4 */ @TestCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Oct 03 17:41:45 GMT 2025 - 116.8K bytes - Click Count (0)