Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 54 of 54 for ArithmeticException (0.11 sec)

  1. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        List<Callable<Integer>> l = new ArrayList<>();
        l.add(
            new Callable<Integer>() {
              @Override
              public Integer call() {
                throw new ArithmeticException("/ by zero");
              }
            });
        l.add(null);
        try {
          invokeAnyImpl(e, l, false, 0, NANOSECONDS);
          fail();
        } catch (NullPointerException success) {
        } finally {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. 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)
  3. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        List<Callable<Integer>> l = new ArrayList<>();
        l.add(
            new Callable<Integer>() {
              @Override
              public Integer call() {
                throw new ArithmeticException("/ by zero");
              }
            });
        l.add(null);
        try {
          invokeAnyImpl(e, l, false, 0, NANOSECONDS);
          fail();
        } catch (NullPointerException success) {
        } finally {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/BaseEncoding.java

          this.name = checkNotNull(name);
          this.chars = checkNotNull(chars);
          try {
            this.bitsPerChar = log2(chars.length, UNNECESSARY);
          } catch (ArithmeticException e) {
            throw new IllegalArgumentException("Illegal alphabet length " + chars.length, e);
          }
    
          // Compute how input bytes are chunked. For example, with base64 we chunk every 3 bytes into
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 41.8K bytes
    - Viewed (0)
Back to top