Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,098 for Try (0.54 sec)

  1. 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 CIFSException
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TemporaryFileInputStreamTest.java

            // Create a temporary file with test data
            File tempFile = File.createTempFile("test-", ".tmp");
            try (FileOutputStream fos = new FileOutputStream(tempFile)) {
                fos.write("Test data".getBytes());
            }
    
            // Read from TemporaryFileInputStream
            try (TemporaryFileInputStream stream = new TemporaryFileInputStream(tempFile)) {
                assertEquals('T', stream.read());
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  4. src/main/java/jcifs/smb/SmbCopyUtil.java

                    }
                }
            }
    
            try (CloseableIterator<SmbResource> it = SmbEnumerationUtil.doEnum(src, "*",
                    SmbConstants.ATTR_DIRECTORY | SmbConstants.ATTR_HIDDEN | SmbConstants.ATTR_SYSTEM, null, null)) {
                while (it.hasNext()) {
                    try (SmbResource r = it.next()) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  5. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

            boolean downloaded = false;
    
            try {
                connectWagon(wagon, repository);
    
                boolean firstRun = true;
                boolean retry = true;
    
                // this will run at most twice. The first time, the firstRun flag is turned off, and if the retry flag
                // is set on the first run, it will be turned off and not re-set on the second try. This is because the
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  7. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  8. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  9. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  10. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 14.8K bytes
    - Viewed (0)
Back to top