- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 1,808 for Try (0.01 sec)
-
src/main/java/org/codelibs/fess/app/web/api/admin/backup/ApiAdminBackupAction.java
if ("system.properties".equals(id)) { return asStream(id).contentTypeOctetStream().stream(out -> { try (final ByteArrayOutputStream baos = new ByteArrayOutputStream()) { ComponentUtil.getSystemProperties().store(baos, id); try (final InputStream in = new ByteArrayInputStream(baos.toByteArray())) { out.write(in); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 6.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/FaultHidingSink.kt
byteCount: Long, ) { if (hasErrors) { source.skip(byteCount) return } try { super.write(source, byteCount) } catch (e: IOException) { hasErrors = true onException(e) } } override fun flush() { if (hasErrors) { return } try { super.flush() } catch (e: IOException) { hasErrors = true onException(e) }Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/EmptyIteratorTest.java
@DisplayName("EmptyIterator should support try-with-resources") void testTryWithResources() { // When & Then assertDoesNotThrow(() -> { try (EmptyIterator iterator = new EmptyIterator()) { assertFalse(iterator.hasNext(), "Iterator should be empty in try-with-resources"); assertNull(iterator.next(), "Iterator should return null in try-with-resources");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
/** * Test that MockWebServer blocks for a call to enqueue() if a request is made before a mock * response is ready. */ @Test fun dispatchBlocksWaitingForEnqueue() { Thread { try { Thread.sleep(1000) } catch (ignored: InterruptedException) { } server.enqueue(MockResponse().setBody("enqueued in the background")) }.start()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 03 13:16:34 UTC 2025 - 22.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessClient.java
WitnessNotificationListener listener) { return CompletableFuture.supplyAsync(() -> { try { // Create registration WitnessRegistration registration = new WitnessRegistration(shareName, serverAddress, WitnessServiceType.FILE_SERVER_WITNESS);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java
throwValidationError(messages -> messages.addErrorsStorageNoUploadFile(GLOBAL), () -> asListHtml(form.path)); } verifyToken(() -> asListHtml(form.path)); try { uploadObject(getObjectName(form.path, form.uploadFile.getFileName()), form.uploadFile); } catch (final StorageException e) { logger.warn("Failed to upload {}", form.uploadFile.getFileName(), e);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 25.1K bytes - Viewed (0) -
android/guava/src/com/google/common/io/TempFileCreator.java
abstract File createTempFile(String prefix) throws IOException; private static TempFileCreator pickSecureCreator() { try { Class.forName("java.nio.file.Path"); return new JavaNioCreator(); } catch (ClassNotFoundException runningUnderAndroid) { // Try another way. } try { int version = (int) Class.forName("android.os.Build$VERSION").getField("SDK_INT").get(null); int jellyBean =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 12.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java
jakarta.validation.ConstraintValidator.class.isAssignableFrom(CustomSizeValidator.class)); } public void test_methodsExist() { // Verify required methods exist try { CustomSizeValidator.class.getMethod("initialize", CustomSize.class); CustomSizeValidator.class.getMethod("isValid", CharSequence.class, ConstraintValidatorContext.class);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 5.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java
} @Override public void testEntrySetRemoveAllNullFromEmpty() { try { super.testEntrySetRemoveAllNullFromEmpty(); } catch (RuntimeException tolerated) { // GWT's TreeMap.entrySet().removeAll(null) doesn't throws NPE. } } @Override public void testEntrySetRetainAllNullFromEmpty() { try { super.testEntrySetRetainAllNullFromEmpty(); } catch (RuntimeException tolerated) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 3.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
assertEquals((short) 0x0010, request.getCommand()); // Verify that default file ID is set byte[] expectedFileId = Smb2Constants.UNSPECIFIED_FILEID; Field fileIdField; try { fileIdField = Smb2QueryInfoRequest.class.getDeclaredField("fileId"); fileIdField.setAccessible(true); byte[] actualFileId = (byte[]) fileIdField.get(request);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0)