- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 886 for Try (0.24 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
public void testContainsKey() { Map<K, V> map; K unmappedKey; try { map = makePopulatedMap(); unmappedKey = getKeyNotInPopulatedMap(); } catch (UnsupportedOperationException e) { return; } assertFalse(map.containsKey(unmappedKey)); try { assertFalse(map.containsKey(new IncompatibleKeyType())); } catch (ClassCastException tolerated) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 43.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/storage/StorageClientTest.java
} try (final ResponseData responseData = storageClient.doHead("storage://fess/")) { assertNull(responseData); } try (final ResponseData responseData = storageClient.doHead("storage://fess/dir1/")) { assertNull(responseData); } try (final ResponseData responseData = storageClient.doHead("storage://fess/dir1/dir2/")) {Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Thu Aug 07 02:55:08 UTC 2025 - 13.8K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
try { circuitBreaker.executeWithCircuitBreaker(() -> { throw new RuntimeException("Test failure"); }); } catch (CIFSException e) { // Expected } } assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN"); // Try to execute - should be blocked with CIFSExceptionRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
try (SmbSessionImpl session = getSession()) { if (session == null) { return; } try (SmbTransportImpl transport = session.getTransport()) { synchronized (transport) { final SmbTreeImpl t = getTreeInternal(); if (t != null) { try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (1) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
tempFile = File.createTempFile("test", ".tmp", Curl.tmpDir); // Write test content to file try (FileOutputStream fos = new FileOutputStream(tempFile)) { fos.write(testContent.getBytes("UTF-8")); } ContentCache cache = new ContentCache(tempFile); try (InputStream stream = cache.getInputStream()) { assertNotNull(stream); byte[] buffer = new byte[1024];
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/jcifs/config/PropertyConfiguration.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 13.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
try { handshake(); } catch (final IOException ex) {} return connection.getDate(); } @Override public long getLastModified() { try { handshake(); } catch (final IOException ex) {} return connection.getLastModified(); } @Override public String getHeaderField(final String header) { try {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 22.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java
@J2ktIncompatible @GwtIncompatible // concurrency public static void awaitUninterruptibly(CountDownLatch latch) { boolean interrupted = false; try { while (true) { try { latch.await(); return; } catch (InterruptedException e) { interrupted = true; } } } finally { if (interrupted) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
Collection<E> copy = new ArrayList<>(); copy.addAll(collection); try { collection.add(sampleElement); fail("add succeeded on unmodifiable collection"); } catch (UnsupportedOperationException expected) { } assertCollectionsAreEquivalent(copy, collection); try { collection.addAll(siblingCollection); fail("addAll succeeded on unmodifiable collection");Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 14.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java
private void loadPersistedHandles() { if (!Files.exists(stateDirectory)) { return; } try (DirectoryStream<Path> stream = Files.newDirectoryStream(stateDirectory, "*.handle")) { for (Path handleFile : stream) { try (ObjectInputStream ois = new ObjectInputStream(Files.newInputStream(handleFile))) { HandleInfo info = (HandleInfo) ois.readObject();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 13K bytes - Viewed (0)