- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 2,679 for trying (0.64 sec)
-
guava-tests/test/com/google/common/io/CloserTest.java
} public void testNullCloseable() throws IOException { Closer closer = Closer.create(); closer.register(null); closer.close(); } /** * Asserts that an exception was thrown when trying to close each of the given throwables and that * each such exception was suppressed because of the given thrown exception. */ private void assertSuppressed(Suppression... expected) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 11.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
class Local<T> {} TypeToken<Local<String>> type = new TypeToken<Local<String>>() {}; assertEquals(Types.newParameterizedType(Local.class, String.class), type.getType()); assertEquals(new Local<String>() {}.getClass().getGenericSuperclass(), type.getType()); } public void testGenericArrayType() { TypeToken<List<String>[]> token = new TypeToken<List<String>[]>() {};
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloserTest.java
} public void testNullCloseable() throws IOException { Closer closer = Closer.create(); closer.register(null); closer.close(); } /** * Asserts that an exception was thrown when trying to close each of the given throwables and that * each such exception was suppressed because of the given thrown exception. */ private void assertSuppressed(Suppression... expected) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 11.8K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java
update(3, charToThreeUtf8Bytes(c)); } else { int codePoint = Character.codePointAt(input, i); if (codePoint == c) { // fall back to JDK getBytes instead of trying to handle invalid surrogates ourselves putBytes(input.subSequence(i, utf16Length).toString().getBytes(charset)); return this; } i++;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:36:11 UTC 2025 - 11.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
.addEqualityGroup(ImmutableLongArray.of(1, 3)) .addEqualityGroup(ImmutableLongArray.of(1, 2, 3)) .testEquals(); } /** * This is probably a weird and hacky way to test what we're really trying to test, but hey, it * caught a bug. */ public void testTrimmed() { ImmutableLongArray iia = ImmutableLongArray.of(0, 1, 3); assertDoesntActuallyTrim(iia);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Strings.java
public static String nullToEmpty(@Nullable String string) { return Platform.nullToEmpty(string); } /** * Returns the given string if it is nonempty; {@code null} otherwise. * * @param string the string to test and possibly return * @return {@code string} itself if it is nonempty; {@code null} if it is empty or null */ public static @Nullable String emptyToNull(@Nullable String string) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 27 17:53:41 UTC 2025 - 12.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
if (e is InterruptedIOException) { return e is SocketTimeoutException && !requestSendStarted } // Look for known client-side or negotiation errors that are unlikely to be fixed by trying // again with a different route. if (e is SSLHandshakeException) { // If the problem was a CertificateException from the X509TrustManager, // do not retry. if (e.cause is CertificateException) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 12.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt
object : X509TrustManager { override fun checkClientTrusted( x509Certificates: Array<X509Certificate>, s: String, ) { } override fun checkServerTrusted( x509Certificates: Array<X509Certificate>, s: String, ) { } override fun getAcceptedIssuers(): Array<X509Certificate> = arrayOf() } client =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jun 19 11:44:16 UTC 2025 - 19.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
private final String toString; protected Stimulus(String toString) { this.toString = toString; } /** * Send this stimulus to both iterators and return normally only if both produce the same * response. */ abstract void executeAndCompare(ListIterator<E> reference, T target); @Override public String toString() { return toString;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 20.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
private final String toString; protected Stimulus(String toString) { this.toString = toString; } /** * Send this stimulus to both iterators and return normally only if both produce the same * response. */ abstract void executeAndCompare(ListIterator<E> reference, T target); @Override public String toString() { return toString;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 21.4K bytes - Viewed (0)