- Sort Score
- Result 10 results
- Languages All
Results 1101 - 1110 of 2,652 for throw (0.06 sec)
-
guava-tests/test/com/google/common/reflect/ClassPathTest.java
Resources.copy(ClassPathTest.class.getResource(entry), jarOut); jarOut.closeEntry(); } } catch (Throwable e) { throw closer.rethrow(e); } finally { closer.close(); } } private static Manifest manifest(String content) throws IOException { InputStream in = new ByteArrayInputStream(content.getBytes(US_ASCII)); Manifest manifest = new Manifest(); manifest.read(in);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 27.6K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostStreaming.kt
Request( url = "https://api.github.com/markdown/raw".toHttpUrl(), body = requestBody, ) client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response") println(response.body.string()) } } companion object { val MEDIA_TYPE_MARKDOWN = "text/x-markdown; charset=utf-8".toMediaType() } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractImmutableSortedMapMapInterfaceTest.java
extends SortedMapInterfaceTest<K, V> { public AbstractImmutableSortedMapMapInterfaceTest() { super(false, false, false, false, false); } @Override protected SortedMap<K, V> makeEmptyMap() { throw new UnsupportedOperationException(); } private static final Joiner joiner = Joiner.on(", "); @Override protected void assertMoreInvariants(Map<K, V> map) { // TODO: can these be moved to MapInterfaceTest?
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ExplicitOrdering.java
public int compare(T left, T right) { return rank(left) - rank(right); // safe because both are nonnegative } private int rank(T value) { Integer rank = rankMap.get(value); if (rank == null) { throw new IncomparableValueException(value); } return rank; } @Override public boolean equals(@CheckForNull Object object) { if (object instanceof ExplicitOrdering) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Jun 20 14:22:42 UTC 2021 - 2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableBiMapMapInterfaceTest.java
AbstractImmutableBiMapMapInterfaceTest() { super(false, false, false, false, false); } @Override protected Map<K, V> makeEmptyMap() { throw new UnsupportedOperationException(); } private static final Joiner JOINER = Joiner.on(", "); @Override protected final void assertMoreInvariants(Map<K, V> map) { BiMap<K, V> bimap = (BiMap<K, V>) map;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ExplicitOrdering.java
public int compare(T left, T right) { return rank(left) - rank(right); // safe because both are nonnegative } private int rank(T value) { Integer rank = rankMap.get(value); if (rank == null) { throw new IncomparableValueException(value); } return rank; } @Override public boolean equals(@CheckForNull Object object) { if (object instanceof ExplicitOrdering) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Jun 20 14:22:42 UTC 2021 - 2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/Helpers.java
if (!iterator.hasNext()) { iterator = iterable.iterator(); } return iterator.next(); } @Override public void remove() { throw new UnsupportedOperationException(); } }; } static <T extends @Nullable Object> T get(Iterator<T> iterator, int position) { for (int i = 0; i < position; i++) { iterator.next();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 17.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
RandomHasherAction.pickAtRandom(random).performAction(random, sinksAndControl); } // We need to ensure that at least 4 bytes have been put into the hasher or else // Hasher#hash will throw an ISE. int intToPut = random.nextInt(); for (Hasher hasher : sinksAndControl) { hasher.putInt(intToPut); } for (Sink sink : sinks) { HashCode unused = sink.hash();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.5K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt
extensionContext: ExtensionContext, ) { var failed = false try { invocation.proceed() } catch (e: TestAbortedException) { throw e } catch (e: Throwable) { failed = true rethrowIfNotExpected(e) } finally { resetPlatform() } if (!failed) { failIfExpected() } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15.3K bytes - Viewed (1) -
guava-tests/test/com/google/common/collect/UnmodifiableIteratorTest.java
@Override public boolean hasNext() { return i < array.length; } @Override public String next() { if (!hasNext()) { throw new NoSuchElementException(); } return array[i++]; } }; assertTrue(iterator.hasNext()); assertEquals("a", iterator.next());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 1.7K bytes - Viewed (0)