- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 1,947 for threw (0.03 sec)
-
guava/src/com/google/common/util/concurrent/SneakyThrows.java
* write {@code throw sneakyThrow(t);} to convince the compiler that the statement will always * throw. */ @CanIgnoreReturnValue static Error sneakyThrow(Throwable t) { throw new SneakyThrows<Error>().throwIt(t); } @SuppressWarnings("unchecked") // not really safe, but that's the point private Error throwIt(Throwable t) throws T { throw (T) t; } private SneakyThrows() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Dec 30 18:44:22 UTC 2024 - 2.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
boolean haveBeenCalled; @Override public Integer computeNext() { if (haveBeenCalled) { throw new AssertionError("Should not have been called again"); } else { haveBeenCalled = true; throw sneakyThrow(new SomeCheckedException()); } } }; // The first time, the sneakily-thrown exception comes out
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
int expectedLength = (Math.min(65536, 65536) - Smb2QueryInfoResponse.OVERHEAD) & ~0x7; assertEquals(expectedLength, actualOutputBufferLength); } catch (Exception e) { throw new RuntimeException(e); } } @Test @DisplayName("Test constructor with Configuration and FileId") void testConstructorWithConfigAndFileId() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultResolutionErrorHandler.java
throw result.getVersionRangeViolation(0); } // Transfer Error if (result.hasErrorArtifactExceptions()) { throw result.getErrorArtifactExceptions().get(0); } if (result.hasMissingArtifacts()) { throw new MultipleArtifactsNotFoundException( request.getArtifact(), toList(result.getArtifacts()),
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 2.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
public final boolean readBoolean() throws SmbException { if (read(tmp, 0, 1) < 0) { throw new SmbException("EOF"); } return tmp[0] != (byte) 0x00; } @Override public final byte readByte() throws SmbException { if (read(tmp, 0, 1) < 0) { throw new SmbException("EOF"); } return tmp[0]; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.1K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/metadata/TestMetadataSource.java
throw new UnsupportedOperationException("Cannot get available versions in this test case"); } @Override public List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository( Artifact artifact, ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws ArtifactMetadataRetrievalException {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 3.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterables.java
* Objects.equals(o, element)} would return {@code true}. Otherwise returns {@code false}, even in * cases where {@link Collection#contains} might throw {@link NullPointerException} or {@link * ClassCastException}. */ public static boolean contains(Iterable<?> iterable, @Nullable Object element) { if (iterable instanceof Collection) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
ImmutableSortedMap.of("one", 1, "two", 2, "three", 3), "one", 1, "three", 3, "two", 2); assertMapEquals( ImmutableSortedMap.of("one", 1, "two", 2, "three", 3, "four", 4), "four", 4, "one", 1, "three", 3, "two", 2); assertMapEquals( ImmutableSortedMap.of("one", 1, "two", 2, "three", 3, "four", 4, "five", 5), "five",
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.6K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosToken.java
if (token.length <= 0) { throw new PACDecodingException("Empty kerberos token"); } byte[] content; try (ASN1InputStream stream = new ASN1InputStream(token)) { content = ASN1Util.readUnparsedTagged(0, 0x8000, stream); } catch (IOException e) { throw new PACDecodingException("Malformed kerberos token", e); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
// Fail 3 times to open circuit for (int i = 0; i < 3; i++) { final int index = i; try { circuitBreaker.executeWithCircuitBreaker(() -> { throw new RuntimeException("Test failure " + index); }); fail("Should have thrown exception"); } catch (CIFSException e) { // Expected } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0)