- Sort Score
- Num 10 results
- Language All
Results 2861 - 2870 of 3,670 for throwIf (0.05 seconds)
-
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java
} @Test public void test_hashCode_withNullInput() { // Test hashCode with null input - should not throw, returns consistent hash for null ProtwordsItem item1 = new ProtwordsItem(1, null); ProtwordsItem item2 = new ProtwordsItem(2, null); // Should not throw int hash1 = item1.hashCode(); int hash2 = item2.hashCode();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/exception/WebApiException.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.exception; /** * Exception thrown when web API operations encounter errors. * This exception includes an HTTP status code to indicate the nature of the error. */ public class WebApiException extends FessSystemException {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 2.3K bytes - Click Count (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java
() -> new FileSource((File) null), "Should fail, since you must specify a file"); assertEquals("file cannot be null", e.getMessage()); } @Test void testGetInputStream() throws Exception { File txtFile = new File("target/test-classes/source.txt"); FileSource source = new FileSource(txtFile); try (InputStream is = source.getInputStream();
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.2K bytes - Click Count (0) -
mockwebserver-junit4/src/main/kotlin/mockwebserver3/junit4/MockWebServerRule.kt
* ``` */ class MockWebServerRule : ExternalResource() { val server: MockWebServer = MockWebServer() override fun before() { try { server.start() } catch (e: IOException) { throw RuntimeException(e) } } override fun after() { server.close() }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jun 16 22:36:18 GMT 2025 - 1.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/RegularImmutableAsListTest.java
ImmutableSet<Integer> set = ImmutableSet.of(1, 2, 3); ImmutableList<Integer> unused = new RegularImmutableAsList<Integer>(set, new @Nullable Object[] {null, null, null}); // shouldn't throw! }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.4K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/EncryptParser.java
protected Options parseCliOptions(LocalContext context) { try { return CommonsCliEncryptOptions.parse(context.parserRequest.args().toArray(new String[0])); } catch (ParseException e) { throw new IllegalArgumentException("Failed to parse command line options: " + e.getMessage(), e); } }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 1.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java
} @MapFeature.Require(absent = SUPPORTS_REMOVE) public void testRemove_unsupportedNotPresent() { try { assertNull( "remove(notPresent) should return null or throw UnsupportedOperationException", getMap().remove(k3())); } catch (UnsupportedOperationException tolerated) { } expectUnchanged(); expectMissing(e3()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 5.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java
} throw new IllegalStateException("Unexpected edge type: " + edgeType); } private static EdgeType oppositeType(EdgeType edgeType) { switch (edgeType) { case UNDIRECTED: return EdgeType.DIRECTED; case DIRECTED: return EdgeType.UNDIRECTED; } throw new IllegalStateException("Unexpected edge type: " + edgeType); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java
throw new RuntimeException("bad constructor"); } public ExceptionWithGoodAndBadConstructor(Throwable cause) { super(cause); } } static final class ExceptionWithBadConstructor extends Exception { public ExceptionWithBadConstructor(String message, Throwable cause) { throw new RuntimeException("bad constructor"); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 6.3K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/CheckSubprojectsInfo.kt
abstract class CheckSubprojectsInfo : SubprojectsInfo() { @TaskAction fun checkSubprojectsInfo() { if (subprojectsJson.asFile.readText() != generateSubprojectsJson()) { throw GradleException( "New project(s) added without updating subproject JSON. Please run `:${GenerateSubprojectsInfo.TASK_NAME}` task." ) } }
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Jul 07 13:12:26 GMT 2021 - 1.2K bytes - Click Count (0)