- Sort Score
- Num 10 results
- Language All
Results 1471 - 1480 of 2,310 for rethrow (0.04 seconds)
-
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
// TODO(cpovirk): should we be including other methods from the shim here and // in ImmutableSortedMap? @Deprecated public static <E> ImmutableSortedSet.Builder<E> builder() { throw new UnsupportedOperationException(); } private static final Comparator<?> NATURAL_ORDER = Ordering.natural(); // TODO(b/345814817): Move this to RegularImmutableSortedSet?
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 15.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractBiMap.java
if (conflict != null) { broken = entry; // We're definitely going to throw, but we'll try to keep the BiMap in an internally // consistent state by removing the bad entry. itr.remove(); } } if (broken != null) { throw new IllegalArgumentException("value already present: " + broken.getValue()); } } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 14.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/job/IndexExportJob.java
if (format == null || format.trim().isEmpty()) { throw new IllegalArgumentException("Export format must not be null or empty"); } switch (format.trim().toLowerCase()) { case "html": return new HtmlIndexExportFormatter(); case "json": return new JsonIndexExportFormatter(); default: throw new IllegalArgumentException("Unsupported export format: " + format);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 10.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java
} @Test public void test_throwAndCatch() { // Test throwing and catching the exception String expectedMessage = "SSO configuration error"; try { throw new SsoProcessException(expectedMessage); } catch (SsoProcessException e) { assertEquals(expectedMessage, e.getMessage()); assertNull(e.getCause()); } } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 13.8K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleJavadocsPlugin.java
return notSeeBefore; } else { return true; // not a package-info.java file, we ignore it } } catch (IOException e) { throw UncheckedException.throwAsUncheckedException(e, true); } } private String getPackageName(File file) throws IOException { try (Stream<String> lines = Files.lines(file.toPath())) {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Sun Mar 01 05:52:34 GMT 2026 - 11.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt
object : ResponseBody() { override fun contentType(): MediaType? = null override fun contentLength(): Long = Int.MAX_VALUE + 1L override fun source(): BufferedSource = throw AssertionError() } assertFailsWith<IOException> { body.bytes() }.also { expected -> assertThat(expected.message).isEqualTo(
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 12.4K bytes - Click Count (0) -
guava/src/com/google/common/base/internal/Finalizer.java
* loader as the rest of Guava, this thread would keep an indirect strong reference to the class * loader and prevent it from being garbage collected. This poses a problem for environments where * you want to throw away the class loader. For example, dynamically reloading a web application or * unloading an OSGi bundle. * * <p>{@code com.google.common.base.FinalizableReferenceQueue} loads this class in its own classCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 03:19:29 GMT 2026 - 9.6K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacDataInputStream.java
final short length = readShort(); final short maxLength = readShort(); final int pointer = readInt(); if (maxLength < length) { throw new PACDecodingException("Malformed string in PAC"); } return new PacUnicodeString(length, maxLength, pointer); } /** * Reads a string with length prefix from the stream.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
public void testConstructorWithNullConfig() { // Given String oldFileName = "old.txt"; String newFileName = "new.txt"; // When & Then - should throw NullPointerException assertThrows(NullPointerException.class, () -> { new SmbComRename(null, oldFileName, newFileName); }); } /** * Test with null file names
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
int bytesRead = readPacket.readTrailerWireFormat(bais, buffer, 0); assertEquals(written, bytesRead); } @Test @DisplayName("readTrailerWireFormat should throw IOException on incomplete data") void testReadTrailerWireFormatIncompleteData() { byte[] buffer = new byte[10]; // Too small buffer ByteArrayInputStream bais = new ByteArrayInputStream(buffer);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0)