Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for CatchingUnchecked (0.26 sec)

  1. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

         * parameter, or if the constructor or factory method throws exception.
         *
         * @return this tester
         */
        @CanIgnoreReturnValue
        @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
        public FactoryMethodReturnValueTester testSerializable() throws Exception {
          for (Invokable<?, ?> factory : getFactoriesToTest()) {
            Object instance = instantiate(factory);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

        private final Adder adder;
    
        FailsToPropagateException(Adder adder) {
          this.adder = adder;
        }
    
        @Override
        @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
        public int add(int a, int b) {
          try {
            return adder.add(a, b);
          } catch (Exception e) { // sneaky checked exception
            // swallow!
            return 0;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

        private final Adder adder;
    
        FailsToPropagateException(Adder adder) {
          this.adder = adder;
        }
    
        @Override
        @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
        public int add(int a, int b) {
          try {
            return adder.add(a, b);
          } catch (Exception e) { // sneaky checked exception
            // swallow!
            return 0;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

         * parameter, or if the constructor or factory method throws exception.
         *
         * @return this tester
         */
        @CanIgnoreReturnValue
        @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
        public FactoryMethodReturnValueTester testSerializable() throws Exception {
          for (Invokable<?, ?> factory : getFactoriesToTest()) {
            Object instance = instantiate(factory);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Strings.java

            builder.append(lenientToString(args[i]));
            prefix = ", ";
          }
          builder.append(']');
        }
    
        return builder.toString();
      }
    
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      private static String lenientToString(@Nullable Object o) {
        if (o == null) {
          return "null";
        }
        try {
          return o.toString();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

      protected Map<K, V> makeEitherMap() {
        try {
          return makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return makeEmptyMap();
        }
      }
    
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      protected final boolean supportsValuesHashCode(Map<K, V> map) {
        // get the first non-null value
        Collection<V> values = map.values();
        for (V value : values) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 43.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Streams.java

      public static DoubleStream stream(OptionalDouble optional) {
        return optional.isPresent() ? DoubleStream.of(optional.getAsDouble()) : DoubleStream.empty();
      }
    
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      private static void closeAll(BaseStream<?, ?>[] toClose) {
        // If one of the streams throws an exception, continue closing the others, then throw the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 37K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/BloomFilter.java

       *     appear to be a BloomFilter serialized using the {@linkplain #writeTo(OutputStream)} method.
       */
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      public static <T extends @Nullable Object> BloomFilter<T> readFrom(
          InputStream in, Funnel<? super T> funnel) throws IOException {
        checkNotNull(in, "InputStream");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top