Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1351 - 1360 of 2,175 for catch (0.06 sec)

  1. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

              default:
                assertThat(network.hasEdgeConnecting(node, otherNode)).isTrue();
                try {
                  network.edgeConnectingOrNull(node, otherNode);
                  fail();
                } catch (IllegalArgumentException expected) {
                }
            }
    
            boolean isSelfLoop = node.equals(otherNode);
            boolean connected = !edgesConnecting.isEmpty();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableListMultimap.java

          }
          builder.put(key, valuesBuilder.build());
          tmpSize += valueCount;
        }
    
        ImmutableMap<Object, ImmutableList<Object>> tmpMap;
        try {
          tmpMap = builder.buildOrThrow();
        } catch (IllegalArgumentException e) {
          throw (InvalidObjectException) new InvalidObjectException(e.getMessage()).initCause(e);
        }
    
        FieldSettersHolder.MAP_FIELD_SETTER.set(this, tmpMap);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 20:20:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Queues.java

              while (true) {
                try {
                  e = q.poll(deadline - System.nanoTime(), NANOSECONDS);
                  break;
                } catch (InterruptedException ex) {
                  interrupted = true; // note interruption and retry
                }
              }
              if (e == null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 14:11:14 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        // Stall in onOpen to prevent pongs from being sent.
        val latch = CountDownLatch(1)
        webServer.enqueue(
          MockResponse.Builder()
            .webSocketUpgrade(
              object : WebSocketListener() {
                override fun onOpen(
                  webSocket: WebSocket,
                  response: Response,
                ) {
                  try {
                    latch.await() // The server can't respond to pings!
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

     * </ul>
     *
     * Each derivation can capture the next value or any intermediate objects for later closing.
     *
     * <p>A step can be the input to at most one derived step. Once you transform its value, catch its
     * exception, or combine it with others, you cannot do anything else with it, including declare it
     * to be the last step of the pipeline.
     *
     * <h4>Transforming</h4>
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 08 19:36:35 UTC 2024
    - 98.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

                if (existingCounter.compareAndSet(oldValue, newValue)) {
                  // newValue can't == 0, so no need to check & remove
                  return oldValue;
                }
              } catch (ArithmeticException overflow) {
                throw new IllegalArgumentException(
                    "Overflow adding " + occurrences + " occurrences to a count of " + oldValue);
              }
            } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

          }
          builder.put(key, valuesBuilder.build());
          tmpSize += valueCount;
        }
    
        ImmutableMap<Object, ImmutableList<Object>> tmpMap;
        try {
          tmpMap = builder.buildOrThrow();
        } catch (IllegalArgumentException e) {
          throw (InvalidObjectException) new InvalidObjectException(e.getMessage()).initCause(e);
        }
    
        FieldSettersHolder.MAP_FIELD_SETTER.set(this, tmpMap);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Queues.java

              while (true) {
                try {
                  e = q.poll(deadline - System.nanoTime(), NANOSECONDS);
                  break;
                } catch (InterruptedException ex) {
                  interrupted = true; // note interruption and retry
                }
              }
              if (e == null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 14:11:14 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

                    public void run() {
                      for (int j = 0; j < getsPerTask; j++) {
                        try {
                          cache.getUnchecked("key" + random.nextInt(nUniqueKeys));
                        } catch (RuntimeException e) {
                        }
                      }
                    }
                  });
        }
    
        threadPool.shutdown();
        threadPool.awaitTermination(300, SECONDS);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/FilesTest.java

        try {
          Files.move(from, to);
          if (success) {
            assertFalse(from.exists());
            assertTrue(to.exists());
          } else {
            fail("expected exception");
          }
        } catch (IOException possiblyExpected) {
          if (success) {
            throw possiblyExpected;
          }
        }
      }
    
      private static class UnmovableFile extends File {
    
        private final boolean canRename;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top