Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1321 - 1330 of 2,175 for catch (0.05 sec)

  1. guava/src/com/google/common/collect/TreeMultiset.java

          E e = (E) element;
          AvlNode<E> root = rootReference.get();
          if (!range.contains(e) || root == null) {
            return 0;
          }
          return root.count(comparator(), e);
        } catch (ClassCastException | NullPointerException e) {
          return 0;
        }
      }
    
      @CanIgnoreReturnValue
      @Override
      public int add(@ParametricNullness E element, int occurrences) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

            try
            {
            new RegexBasedModelInterpolator().interpolate( model, context );
            fail( "Should have failed to interpolate with invalid reference" );
            }
            catch ( ModelInterpolationException expected )
            {
            assertTrue( true );
            }
            */
    
            ModelInterpolator interpolator = createInterpolator();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/net/InternetDomainName.java

       *   domainName = InternetDomainName.from(name);
       * } catch (IllegalArgumentException e) {
       *   domainName = DEFAULT_DOMAIN;
       * }
       * }</pre>
       *
       * @since 8.0 (previously named {@code isValidLenient})
       */
      public static boolean isValid(String name) {
        try {
          InternetDomainName unused = from(name);
          return true;
        } catch (IllegalArgumentException e) {
          return false;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        }
    
        // subsequent calls should call the loader again, not get the old exception
        try {
          cache.getUnchecked("bar");
          fail();
        } catch (InvalidCacheLoadException expected) {
        }
        assertEquals(2, callCount.get());
      }
    
      /**
       * On a concurrent computation that throws an unchecked exception, all threads should get the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

        addEdge(N1, N2, E12);
        Set<String> adjacentEdges = network.adjacentEdges(E12);
        try {
          adjacentEdges.add(E23);
          fail(ERROR_MODIFIABLE_COLLECTION);
        } catch (UnsupportedOperationException e) {
          addEdge(N2, N3, E23);
          assertThat(network.adjacentEdges(E12)).containsExactlyElementsIn(adjacentEdges);
        }
      }
    
      @Override
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

         */
        @Override
        public void testRemove() {
          final Map<String, Map<Integer, Character>> map;
          try {
            map = makePopulatedMap();
          } catch (UnsupportedOperationException e) {
            return;
          }
          final String keyToRemove = map.keySet().iterator().next();
          if (supportsRemove) {
            int initialSize = map.size();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

            @SuppressWarnings("unchecked") // The method is from Prepender.
            Invokable<Prepender, Object> invokable =
                (Invokable<Prepender, Object>) Invokable.from(method);
            return invokable;
          } catch (NoSuchMethodException e) {
            throw new IllegalArgumentException(e);
          }
        }
    
        private void privateMethod() {}
    
        private final void privateFinalMethod() {}
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/TypeResolver.java

            resolvedOwner, (Class<?>) resolvedRawType, resolvedArgs);
      }
    
      private static <T> T expectArgument(Class<T> type, Object arg) {
        try {
          return type.cast(arg);
        } catch (ClassCastException e) {
          throw new IllegalArgumentException(arg + " is not a " + type.getSimpleName());
        }
      }
    
      /** A TypeTable maintains mapping from {@link TypeVariable} to types. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/TableCollectionTest.java

         */
        @Override
        public void testRemove() {
          final Map<String, Map<Integer, Character>> map;
          try {
            map = makePopulatedMap();
          } catch (UnsupportedOperationException e) {
            return;
          }
          final String keyToRemove = map.keySet().iterator().next();
          if (supportsRemove) {
            int initialSize = map.size();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/InvokableTest.java

            @SuppressWarnings("unchecked") // The method is from Prepender.
            Invokable<Prepender, Object> invokable =
                (Invokable<Prepender, Object>) Invokable.from(method);
            return invokable;
          } catch (NoSuchMethodException e) {
            throw new IllegalArgumentException(e);
          }
        }
    
        private void privateMethod() {}
    
        private final void privateFinalMethod() {}
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top