- Sort Score
- Num 10 results
- Language All
Results 371 - 380 of 1,001 for threw (0.02 seconds)
-
compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/AbstractMavenTransferListener.java
public String formatProgress(long progressedSize, long size) { if (progressedSize < 0L) { throw new IllegalArgumentException("progressed file size cannot be negative: " + progressedSize); } if (size >= 0L && progressedSize > size) { throw new IllegalArgumentException( "progressed file size cannot be greater than size: " + progressedSize + " > " + size);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Apr 22 22:13:51 GMT 2025 - 9.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/PeekingIteratorTest.java
@Override public boolean hasNext() { return true; // pretend that you have more... } @Override public E next() { // ...but throw an unchecked exception when you ask for it. if (!iterator.hasNext()) { throw new ThrowsAtEndException(); } return iterator.next(); } @Override public void remove() { iterator.remove(); } }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 8.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java
getMap() .compute( k0(), (k, v) -> { assertEquals(k0(), k); assertEquals(v0(), v); throw new SomeUncheckedException(); })); expectUnchanged(); } @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE}) public void testCompute_absentFunctionThrows() { assertThrows(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 31 14:51:04 GMT 2024 - 7.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java
@Override public V load(K key) { throw e; } }; } /** Returns a {@link CacheLoader} that throws the given exception for every request. */ static <K, V> CacheLoader<K, V> exceptionLoader(Exception e) { checkNotNull(e); return new CacheLoader<K, V>() { @Override public V load(K key) throws Exception { throw e; } }; }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 5.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/LineBufferTest.java
bufferHelper( "\nempty first line\nno newline at end", "\n", "empty first line\n", "no newline at end"); bufferHelper("three\rlines\rno newline at end", "three\r", "lines\r", "no newline at end"); bufferHelper("mixed\nline\rendings\r\n", "mixed\n", "line\r", "endings\r\n"); } private static final ImmutableSet<Integer> CHUNK_SIZES =
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 4.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java
getMap() .compute( k0(), (k, v) -> { assertEquals(k0(), k); assertEquals(v0(), v); throw new SomeUncheckedException(); })); expectUnchanged(); } @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE}) public void testCompute_absentFunctionThrows() { assertThrows(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 7.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/LineBufferTest.java
bufferHelper( "\nempty first line\nno newline at end", "\n", "empty first line\n", "no newline at end"); bufferHelper("three\rlines\rno newline at end", "three\r", "lines\r", "no newline at end"); bufferHelper("mixed\nline\rendings\r\n", "mixed\n", "line\r", "endings\r\n"); } private static final ImmutableSet<Integer> CHUNK_SIZES =
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 4.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractNavigableMap.java
public K firstKey() { Entry<K, V> entry = firstEntry(); if (entry == null) { throw new NoSuchElementException(); } else { return entry.getKey(); } } @Override @ParametricNullness public K lastKey() { Entry<K, V> entry = lastEntry(); if (entry == null) { throw new NoSuchElementException(); } else { return entry.getKey(); } }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 4.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/Maps.java
throw new UnsupportedOperationException(); } @Override public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { throw new UnsupportedOperationException(); } @Override public @Nullable V putIfAbsent(K key, V value) { throw new UnsupportedOperationException(); } @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 163.5K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
public Object badIgnored() { return new BadEquals(); } // primitive ignored public int returnsInt() { throw new UnsupportedOperationException(); } // void ignored public void voidMethod() { throw new UnsupportedOperationException(); } // non-public method ignored static Object badButNotPublic() { return new BadEquals(); } }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 36.3K bytes - Click Count (0)