- Sort Score
- Num 10 results
- Language All
Results 2361 - 2370 of 2,719 for match (0.02 seconds)
-
guava-tests/test/com/google/common/primitives/SignedBytesTest.java
} private static void assertCastFails(long value) { try { SignedBytes.checkedCast(value); fail("Cast to byte should have failed: " + value); } catch (IllegalArgumentException ex) { assertWithMessage("%s not found in exception text: %s", value, ex.getMessage()) .that(ex.getMessage().contains(String.valueOf(value))) .isTrue(); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 7K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java
servernameField.setAccessible(true); String servername = (String) servernameField.get(shareEnum); assertEquals("\\\\" + TEST_SERVER_NAME, servername); } catch (NoSuchFieldException | IllegalAccessException e) { fail("Failed to access servername field: " + e.getMessage()); } } @Test void testGetEntriesWithMultipleShares() throws Exception {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.1K bytes - Click Count (0) -
docs/en/docs/advanced/websockets.md
When a WebSocket connection is closed, the `await websocket.receive_text()` will raise a `WebSocketDisconnect` exception, which you can then catch and handle like in this example. {* ../../docs_src/websockets_/tutorial003_py310.py hl[79:81] *} To try it out: * Open the app with several browser tabs. * Write messages from them.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 5.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dict/stopwords/ApiAdminDictStopwordsAction.java
return null; }); try (InputStream inputStream = form.stopwordsFile.getInputStream()) { file.update(inputStream); } catch (final IOException e) { logger.warn("Failed to process a request.", e); throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadStopwordsFile(GLOBAL)); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 9.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/opensearch/config/exentity/FileConfig.java
} return null; } public void setBoostValue(final String value) { if (value != null) { try { boost = Float.parseFloat(value); } catch (final Exception e) { if (logger.isDebugEnabled()) { logger.debug("Invalid boost value, keeping current: value={}, error={}", value, e.getMessage()); } }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Nov 24 02:07:40 GMT 2025 - 11.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/query/FuzzyQueryCommandTest.java
float boost = 1.0f; try { fuzzyQueryCommand.execute(context, invalidQuery, boost); fail("Should throw InvalidQueryException"); } catch (InvalidQueryException e) { assertTrue(e.getMessage().contains("Unknown q:")); } } // Test convertFuzzyQuery with DEFAULT_FIELD @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java
builder.put(range1, 1).put(range2, 2); try { ImmutableRangeMap<Integer, Integer> unused = builder.build(); assertFalse(expectRejection); } catch (IllegalArgumentException e) { assertTrue(expectRejection); } } } } public void testGet() { for (Range<Integer> range1 : RANGES) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 9.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt
* * ```java * HttpUrl base = HttpUrl.parse("https://www.youtube.com/user/WatchTheDaily/videos"); * HttpUrl link = base.resolve("../../watch?v=cbP2N1BQdYc"); * System.out.println(link); * ``` * * which prints: * * ``` * https://www.youtube.com/watch?v=cbP2N1BQdYc * ``` * * ## What's in a URL? * * A URL has several components. * * ### Scheme *
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 63.5K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/Types.java
for (Method method : TypeVariableImpl.class.getMethods()) { if (method.getDeclaringClass().equals(TypeVariableImpl.class)) { try { method.setAccessible(true); } catch (AccessControlException e) { // OK: the method is accessible to us anyway. The setAccessible call is only for // unusual execution environments where that might not be true. }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Oct 31 19:34:24 GMT 2025 - 24.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
import static com.google.common.testing.GcFinalization.awaitClear; import static com.google.common.testing.GcFinalization.awaitDone; import static com.google.common.truth.Truth.assertThat; import static java.lang.Math.min; import static java.nio.file.attribute.PosixFilePermission.OWNER_READ; import static java.nio.file.attribute.PosixFilePermission.OWNER_WRITE; import static org.junit.Assert.assertThrows; import java.io.File;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 04:04:26 GMT 2026 - 8K bytes - Click Count (0)