- Sort Score
- Num 10 results
- Language All
Results 1751 - 1760 of 3,180 for when (0.14 seconds)
-
okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt
fun androidSdkVersion(): Int? = if (Platform.isAndroid) { Build.VERSION.SDK_INT } else { null } fun localhostHandshakeCertificates(): HandshakeCertificates = when { isBouncyCastle() -> localhostHandshakeCertificatesWithRsa2048 else -> localhost() } val isAndroid: Boolean get() = Platform.Companion.isAndroid companion object {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 15.5K bytes - Click Count (1) -
android/guava/src/com/google/common/collect/ComparisonChain.java
* <p>Using {@link Comparator} avoids certain types of bugs, for example when you meant to write * {@code .compare(a.foo, b.foo)} but you actually wrote {@code .compare(a.foo, a.foo)} or {@code * .compare(a.foo, b.bar)}. {@code ComparisonChain} also has a potential performance problem that * {@code Comparator} doesn't: it evaluates all the parameters of all the {@code .compare} calls,Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 10.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/JdkBackedImmutableMap.java
* hash flooding. */ @GwtIncompatible final class JdkBackedImmutableMap<K, V> extends ImmutableMap<K, V> { /** * Creates an {@code ImmutableMap} backed by a JDK HashMap. Used when probable hash flooding is * detected. This implementation may replace the entries in entryArray with its own entry objects * (though they will have the same key/value contents), and will take ownership of entryArray. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 4.7K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenInvoker.java
* have the same artifactId, effective failed module might be later in build reactor. * This means that developer will either have to type groupId or wait for build execution of all modules which * were fine, but they are still before one which reported errors.Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Sep 11 17:20:46 GMT 2025 - 28.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exec/CrawlerTest.java
@Test public void test_sendMail_withNotificationDisabled() { Map<String, String> infoMap = new HashMap<>(); infoMap.put("TestKey", "TestValue"); // Should not throw exception when notification is disabled try { crawler.sendMail(infoMap); } catch (Exception e) { fail("Should not throw exception: " + e.getMessage()); } } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 30.8K bytes - Click Count (0) -
cmd/metacache-stream.go
} if w.reuseBlocks || o.reusable { metaDataPoolPut(o.metadata) } } return nil } // stream entries to the output. // The returned channel should be closed when done. // Any error is reported when closing the metacacheWriter. func (w *metacacheWriter) stream() (chan<- metaCacheEntry, error) { if w.creator != nil { err := w.creator() w.creator = nil if err != nil {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed May 07 15:37:12 GMT 2025 - 19.5K bytes - Click Count (0) -
.teamcity/src/main/kotlin/model/BucketExtensions.kt
noElementSplitFunction, canRunTogether, ) } } /** * Determine the number of buckets for the first element in the list * when it needs to be split into several smaller pieces. * * The basic idea is: * 1. Make sure the rest elements has at least one bucket.Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Feb 12 09:12:03 GMT 2025 - 5.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/filter/LoadControlFilter.java
import jakarta.servlet.ServletResponse; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; /** * Filter for CPU load-based request control. * Returns HTTP 429 (Too Many Requests) when CPU usage exceeds configurable thresholds. * Web and API requests have independent threshold settings. */ public class LoadControlFilter implements Filter {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Tue Feb 10 04:24:02 GMT 2026 - 4.8K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt
} catch (e: IllegalAccessException) { throw AssertionError(e) } catch (e: InvocationTargetException) { // https://github.com/square/okhttp/issues/5587 val cause = e.cause when { cause is NullPointerException && cause.message == "ssl == null" -> null else -> throw AssertionError(e) } } } companion object {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java
Assert.assertEquals("", escaper.escape("")); // Assert that escapers throw null pointer exceptions. try { escaper.escape((String) null); Assert.fail("exception not thrown when escaping a null string"); } catch (NullPointerException e) { // pass } } /** * Asserts that an escaper escapes the given character into the expected string. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jan 18 20:55:09 GMT 2022 - 3.8K bytes - Click Count (0)