- Sort Score
- Num 10 results
- Language All
Results 2051 - 2060 of 3,670 for throwIf (1.24 seconds)
-
guava-testlib/src/com/google/common/testing/SerializableTester.java
* strict, use {@link #reserialize}. * * @return the re-serialized object * @throws RuntimeException if the specified object was not successfully serialized or * deserialized * @throws AssertionFailedError if the re-serialized object is not equal to the original object, * or if the hashcodes are different. */ @CanIgnoreReturnValueCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 4.1K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Source.java
* The caller is responsible for closing the returned stream. * * @return a new input stream positioned at the start of the content * @throws IOException if the stream cannot be created or opened */ @Nonnull InputStream openStream() throws IOException; /** * Returns a human-readable description of where this source came from, * used primarily for error messages and debugging. * <p>Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jan 29 09:46:53 GMT 2025 - 4K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenPropertiesLoader.java
public static void loadProperties( java.util.Properties properties, Path path, UnaryOperator<String> callback, boolean escape) throws IOException { MavenProperties sp = new MavenProperties(false); if (Files.exists(path)) { sp.load(path); } properties.forEach(Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 6.5K bytes - Click Count (0) -
samples/crawler/src/main/java/okhttp3/sample/Crawler.java
try { drainQueue(); } catch (Throwable e) { e.printStackTrace(); } }); } executor.shutdown(); } private void drainQueue() throws Exception { for (HttpUrl url; (url = queue.take()) != null; ) { if (!fetchedUrls.add(url)) { continue; } Thread currentThread = Thread.currentThread();Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jul 23 00:58:06 GMT 2025 - 5K bytes - Click Count (0) -
src/test/java/jcifs/smb/RequestParamTest.java
@EmptySource @DisplayName("valueOf(\"\") throws IllegalArgumentException for empty input") void valueOfRejectsEmpty(String empty) { assertThrows(IllegalArgumentException.class, () -> RequestParam.valueOf(empty)); } // Invalid: null is not allowed for valueOf @ParameterizedTest @NullSource @DisplayName("valueOf(null) throws NullPointerException") void valueOfRejectsNull(String input) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenPropertiesLoader.java
public static void loadProperties( java.util.Properties properties, Path path, UnaryOperator<String> callback, boolean escape) throws IOException { MavenProperties sp = new MavenProperties(false); if (Files.exists(path)) { sp.load(path); } properties.forEach(Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 6.4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/nio/ChannelUtil.java
assertArgumentNotNull("channel", channel); assertArgumentNotNull("mode", mode); try { return channel.map(mode, 0, channel.size()); } catch (final IOException e) { throw new IORuntimeException(e); } } /** * Returns the size of the file. * * @param channel * The file channel. Must not be {@literal null}.
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 5.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/ArrayListMultimap.java
*/ @GwtIncompatible @J2ktIncompatible private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); Serialization.writeMultimap(this, stream); } @GwtIncompatible @J2ktIncompatible private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 6.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/cors/DefaultCorsHandlerTest.java
import org.junit.jupiter.api.TestInfo; public class DefaultCorsHandlerTest extends UnitFessTestCase { @Override protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); } @Override protected void tearDown(TestInfo testInfo) throws Exception { super.tearDown(testInfo); } // Basic test to verify test framework is working @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 1.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/crawler/service/FessUrlQueueServiceTest.java
import org.junit.jupiter.api.TestInfo; public class FessUrlQueueServiceTest extends UnitFessTestCase { @Override protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); } @Override protected void tearDown(TestInfo testInfo) throws Exception { super.tearDown(testInfo); } // Basic test to verify test framework is working @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 1.9K bytes - Click Count (0)