- Sort Score
- Num 10 results
- Language All
Results 311 - 320 of 2,240 for throwIf (0.18 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt
* possibility for your response. */ @Throws(IOException::class) fun byteString() = consumeSource(BufferedSource::readByteString) { it.size } private inline fun <T : Any> ResponseBody.consumeSource( consumer: (BufferedSource) -> T, sizeMapper: (T) -> Int, ): T { val contentLength = contentLength() if (contentLength > Int.MAX_VALUE) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue May 27 14:51:25 GMT 2025 - 11.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java
} /** Returns a {@link CacheLoader} that throws the given error for every request. */ static <K, V> CacheLoader<K, V> errorLoader(Error e) { checkNotNull(e); return new CacheLoader<K, V>() { @Override public V load(K key) { throw e; } }; } /** Returns a {@link CacheLoader} that throws the given exception for every request. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 5.1K bytes - Click Count (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
} } /** * Opens a connection to the specified URL. * * @param u the URL * @return the HttpURLConnection * @throws IOException if an I/O exception occurs */ protected HttpURLConnection open(final URL u) throws IOException { final HttpURLConnection connection = (HttpURLConnection) (proxy != null ? u.openConnection(proxy) : u.openConnection());Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 19.7K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/IOIntegrationTest.java
return false; } @Override public void connect() throws IOException { // Do Nothing } @Override public int getResponseCode() throws IOException { return 200; } @Override public InputStream getInputStream() throws IOException { return new ByteArrayInputStream(new byte[100]); // dummy payloadCreated: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 44.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
* @return all the constraints implicitly or explicitly required by the class or any of its * superclasses. * @throws ConflictingRequirementsException if the requirements are mutually inconsistent. */ public static TesterRequirements getTesterRequirements(Class<?> testerClass) throws ConflictingRequirementsException { synchronized (classTesterRequirementsCache) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 12.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ReflectionFreeAssertThrows.java
return caught; } throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); } if (userPassedSupplier) { throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but returned result: " + result); } else {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 7K bytes - Click Count (0) -
android/guava/src/com/google/common/net/HostSpecifier.java
* specifier that is not already known to be valid. * * @throws ParseException if the specifier is not valid. */ @CanIgnoreReturnValue // TODO(b/219820829): consider removing public static HostSpecifier from(String specifier) throws ParseException { try { return fromValid(specifier); } catch (IllegalArgumentException e) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
} /** * Removes and returns the greatest element of this queue. * * @throws NoSuchElementException if the queue is empty */ @CanIgnoreReturnValue public E removeLast() { if (isEmpty()) { throw new NoSuchElementException(); } return removeAndGet(getMaxElementIndex()); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0) -
android/guava/src/com/google/common/math/LongMath.java
* * @throws IllegalArgumentException if {@code x <= 0} * @throws ArithmeticException of the next-higher power of two is not representable as a {@code * long}, i.e. when {@code x > 2^62} * @since 20.0 */ public static long ceilingPowerOfTwo(long x) { checkPositive("x", x); if (x > MAX_SIGNED_POWER_OF_TWO) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 09 23:01:02 GMT 2026 - 46.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 9.1K bytes - Click Count (0)