- Sort Score
- Num 10 results
- Language All
Results 1111 - 1120 of 3,637 for throwIf (0.15 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt
override fun source(): BufferedSource { val source = Buffer().writeUtf8("hello") return object : ForwardingSource(source) { @Throws(IOException::class) override fun close(): Unit = throw IOException("Broken!") }.buffer() } } assertThat(body.source().readUtf8()).isEqualTo("hello") body.close() } @Test fun unicodeText() {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java
} public void testNoForwardingOfDefaultMethod() throws Exception { ExecutorService delegate = new ThreadPoolExecutor(0, Integer.MAX_VALUE, 60, SECONDS, new SynchronousQueue<>()) { @Override public void close() { throw new AssertionError( "ForwardingExecutorService should have used the default method"
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 2.9K bytes - Click Count (0) -
src/main/java/jcifs/smb1/netbios/SessionRequestPacket.java
return dstIndex - start; } @Override int readTrailerWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) throws IOException { final int start = bufferIndex; if (in.read(buffer, bufferIndex, length) != length) { throw new IOException("invalid session request wire format"); } bufferIndex += calledName.readWireFormat(buffer, bufferIndex);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
// Then assertEquals(0, bytesWritten); } @Test @DisplayName("Should read valid single notification from wire format") void testReadSingleNotification() throws Exception { // Given byte[] buffer = new byte[512]; int offset = 0; // Set header start position for the response setHeaderStart(response, 64);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 18.8K bytes - Click Count (0) -
src/main/java/jcifs/util/HMACT64.java
private HMACT64(final HMACT64 hmac) throws CloneNotSupportedException { super("HMACT64"); this.ipad = hmac.ipad; this.opad = hmac.opad; this.md5 = (MessageDigest) hmac.md5.clone(); } @Override public Object clone() { try { return new HMACT64(this); } catch (final CloneNotSupportedException ex) { throw new IllegalStateException(ex.getMessage());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 3.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupResponse.java
} /** * {@inheritDoc} * * @throws SMBProtocolDecodingException * if the response data is malformed * * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int) */ @Override protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException { final int start = bufferIndex;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.8K bytes - Click Count (1) -
android/guava-tests/test/com/google/common/io/SourceSinkTester.java
try { return new CharSource() { @Override public Reader openStream() throws IOException { return new StringReader(string); } }.readLines(); } catch (IOException e) { throw new AssertionError(); } } @Override public void tearDown() throws IOException { factory.tearDown(); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 4.9K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java
splitExpr = ">"; } else { throw new IllegalArgumentException("Unrecognized entry: " + l); } String[] parts = l.split(splitExpr); if (parts.length < 1) { throw new IllegalArgumentException("Unrecognized entry: " + l); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Oct 16 06:12:36 GMT 2025 - 9K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java
* the service will transition to the {@link Service.State#FAILED} state and this method will no * longer be called. */ protected abstract void runOneIteration() throws Exception; /** * Start the service. * * <p>By default this method does nothing. */ protected void startUp() throws Exception {} /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 27.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/dtyp/ACETest.java
private ACE ace; private byte[] testBuffer; @BeforeEach void setUp() { ace = new ACE(); } @Test @DisplayName("Test decode with allow ACE") void testDecodeAllowACE() throws Exception { // Prepare test data - Allow ACE testBuffer = new byte[100]; testBuffer[0] = 0x00; // Allow ACE testBuffer[1] = 0x03; // FLAGS_OBJECT_INHERIT | FLAGS_CONTAINER_INHERITCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.6K bytes - Click Count (0)