- Sort Score
- Num 10 results
- Language All
Results 761 - 770 of 3,522 for throwIf (0.24 seconds)
-
android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java
for (int i = 0; i < reps; ++i) { if (javaImpl.compare(ba1, ba2) != 0) { throw new Error(); // deoptimization } } } @Benchmark void longEqualUnsafe(int reps) { for (int i = 0; i < reps; ++i) { if (unsafeImpl.compare(ba1, ba2) != 0) { throw new Error(); // deoptimization } } } @Benchmark void diffLastJava(int reps) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.8K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java
if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println("Server: " + response.header("Server")); System.out.println("Date: " + response.header("Date")); System.out.println("Vary: " + response.headers("Vary")); } } public static void main(String... args) throws Exception { new AccessHeaders().run(); }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun May 22 01:29:42 GMT 2016 - 1.6K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacCredentialType.java
* @param data the raw credential type data * @throws PACDecodingException if the credential type data is invalid */ public PacCredentialType(final byte[] data) throws PACDecodingException { this.credentialType = data; if (!isCredentialTypeCorrect()) { throw new PACDecodingException("Invalid PAC credential type"); } } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiFile.java
} /** * Updates the dictionary file with the given input stream. * * @param in The input stream. * @throws IOException If an I/O error occurs. */ public synchronized void update(final InputStream in) throws IOException { try (KuromojiUpdater updater = new KuromojiUpdater(null)) { reload(updater, in); } } @OverrideCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 07:09:00 GMT 2025 - 11.7K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/av/AvPairsTest.java
}); assertEquals("Missing AvEOL", exception.getMessage(), "Should throw exception for truncated data"); } /** * Test decode with unknown AvPair type */ @Test @DisplayName("Decode unknown AvPair type as generic AvPair") void testDecodeUnknownType() throws CIFSException { byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 }; int unknownType = 0xFF;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.5K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/PostMultipart.java
.build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } } public static void main(String... args) throws Exception { new PostMultipart().run(); }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jun 24 12:59:42 GMT 2019 - 2.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
class ReadBytesWireFormatTests { @Test @DisplayName("Should correctly parse valid SMB2 Close response") void testReadBytesWireFormatWithValidData() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[60]; int bufferIndex = 0; // Structure Size (2 bytes) - must be 60Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 26.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java
void overlapsThrowsCifsException() throws Exception { when(locator.overlaps(any())).thenThrow(new CIFSException("Simulated failure")); CIFSException ex = assertThrows(CIFSException.class, () -> locator.overlaps(other)); assertTrue(ex.getMessage().contains("Simulated failure")); verify(locator).overlaps(other); verifyNoMoreInteractions(locator); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
when(delegate.next()).thenReturn(entry1, entry2); // Adapter that always throws FileEntryAdapterIterator iterator = new FileEntryAdapterIterator(parent, delegate, null) { @Override protected SmbResource adapt(FileEntry e) throws MalformedURLException { throw new MalformedURLException("Always fails"); } };
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 10.6K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java
if (clazz.isAnnotation()) { return (Class<? extends Annotation>) clazz; } else { throw new IllegalArgumentException(rootLocaleFormat("%s is not an annotation.", clazz)); } } public void testFeatureEnums() throws Exception { assertGoodFeatureEnum(CollectionFeature.class); assertGoodFeatureEnum(ListFeature.class); assertGoodFeatureEnum(SetFeature.class);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 00:25:21 GMT 2025 - 4.5K bytes - Click Count (0)