- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 2,075 for throwIf (0.19 seconds)
-
guava/src/com/google/common/base/Preconditions.java
* instead. However, note that {@code checkIndex()} throws {@code IndexOutOfBoundsException} when * {@code size} is negative, while this method throws {@code IllegalArgumentException}. * * @param index a user-supplied index identifying a position in an array, list or string * @param size the size of that array, list or string * @return the value of {@code index}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 53.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/JobExecutorTest.java
} @Test public void test_shutdownListener_exceptionHandling() { // Test exception thrown in shutdown listener jobExecutor.addShutdownListener(new ShutdownListener() { @Override public void onShutdown() { throw new RuntimeException("Test exception"); } }); try { jobExecutor.shutdown();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 9.4K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/Reflection.java
* * @throws ExceptionInInitializerError if an exception is thrown during initialization of a class */ public static void initialize(Class<?>... classes) { for (Class<?> clazz : classes) { try { Class.forName(clazz.getName(), true, clazz.getClassLoader()); } catch (ClassNotFoundException e) { throw new AssertionError(e); } } } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 3.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
} public void testCopyTo_appendable() throws IOException { StringBuilder builder = new StringBuilder(); assertEquals(STRING.length(), source.copyTo(builder)); assertTrue(source.wasStreamOpened() && source.wasStreamClosed()); assertThat(builder.toString()).isEqualTo(STRING); } public void testCopyTo_charSink() throws IOException { TestCharSink sink = new TestCharSink();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 11.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/Range.java
* given values. The returned range is {@linkplain BoundType#CLOSED closed} on both ends. * * @throws ClassCastException if the values are not mutually comparable * @throws NoSuchElementException if {@code values} is empty * @throws NullPointerException if any of {@code values} is null * @since 14.0 */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 28.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java
*/ public static void assertBasic(Escaper escaper) throws IOException { // Escapers operate on characters: no characters, no escaping. 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
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) -
guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java
*/ public static void assertBasic(Escaper escaper) throws IOException { // Escapers operate on characters: no characters, no escaping. 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
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) -
android/guava/src/com/google/common/collect/ImmutableMap.java
* * @throws UnsupportedOperationException always * @deprecated Unsupported operation. */ @CanIgnoreReturnValue @Deprecated @Override public final @Nullable V remove(@Nullable Object o) { throw new UnsupportedOperationException(); } /** * Guaranteed to throw an exception and leave the map unmodified. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 02 19:58:40 GMT 2026 - 41.2K bytes - Click Count (0) -
android/guava/src/com/google/common/io/BaseEncoding.java
@Override public void write(int c) throws IOException { separatingAppendable.append((char) c); } @Override public void write(char[] chars, int off, int len) throws IOException { throw new UnsupportedOperationException(); } @Override public void flush() throws IOException { delegate.flush(); } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 41.6K bytes - Click Count (0) -
src/main/java/org/codelibs/curl/io/ContentOutputStream.java
* If an error occurs during file deletion, it is logged but not thrown to avoid * masking exceptions from the main operation. * * @throws IOException if an I/O error occurs during stream closure */ @Override public void close() throws IOException { try { super.close(); } finally { if (!isInMemory() && !done) {Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Nov 20 13:34:13 GMT 2025 - 3.9K bytes - Click Count (0)