- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 1,657 for Try (0.26 sec)
-
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/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) -
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) -
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/dict/mapping/CharMappingFileTest.java
// Ensure the test file is initially empty try (java.io.FileWriter fw = new java.io.FileWriter(testFile)) { fw.write(""); } // Create a temporary project.properties file for SystemHelper File propFile = File.createTempFile("project", ".properties"); propFile.deleteOnExit(); try (FileOutputStream fos = new FileOutputStream(propFile)) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 18.5K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
return null; } synchronized (touchfile.getAbsolutePath().intern()) { try { Properties props = new Properties(); try (FileInputStream in = new FileInputStream(touchfile)) { try (FileLock lock = in.getChannel().lock(0, Long.MAX_VALUE, true)) {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Tue Apr 22 22:13:51 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/transport/Transport.java
/* If just a timeout, try to disconnect gracefully */ final boolean hard = !timeout; if (!timeout && LogStream.level >= 3) { ex.printStackTrace(log); } try { disconnect(hard); } catch (final IOException ioe) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K 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) -
src/test/java/org/codelibs/fess/helper/IntervalControlHelperTest.java
} public void test_parseTime_invalidFormat() { try { IntervalControlHelper.parseTime("12"); fail("Should throw FessSystemException"); } catch (FessSystemException e) { assertEquals("Invalid format: 12", e.getMessage()); } try { IntervalControlHelper.parseTime("12:30:45");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 10 13:41:04 UTC 2025 - 13.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java
@Override protected SortedMap<K, V> makeEitherMap() { try { return makePopulatedMap(); } catch (UnsupportedOperationException e) { return makeEmptyMap(); } } public void testTailMapWriteThrough() { SortedMap<K, V> map; try { map = makePopulatedMap(); } catch (UnsupportedOperationException e) { return; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 3.9K bytes - Viewed (0)