Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 88 for AssertionError (0.19 sec)

  1. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        private DummyInternalEntry() {
          throw new AssertionError();
        }
    
        @Override
        public DummyInternalEntry getNext() {
          throw new AssertionError();
        }
    
        @Override
        public int getHash() {
          throw new AssertionError();
        }
    
        @Override
        public Object getKey() {
          throw new AssertionError();
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/IntMath.java

            // floor(2^(logFloor + 0.5))
            int logFloor = (Integer.SIZE - 1) - leadingZeros;
            return logFloor + lessThanBranchFree(cmp, x);
    
          default:
            throw new AssertionError();
        }
      }
    
      /** The biggest half power of two that can fit in an unsigned int. */
      @VisibleForTesting static final int MAX_POWER_OF_SQRT2_UNSIGNED = 0xB504F333;
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/JoinerTest.java

        } catch (IOException e) {
          throw new AssertionError(e);
        }
    
        try {
          joiner.appendTo(NASTY_APPENDABLE, set.iterator());
        } catch (IOException e) {
          throw new AssertionError(e);
        }
    
        try {
          joiner.appendTo(NASTY_APPENDABLE, array);
        } catch (IOException e) {
          throw new AssertionError(e);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/LongMath.java

                case HALF_UP:
                  return (x >= 0) ? roundCeilingAsDouble : roundFloorAsDouble;
                default:
                  throw new AssertionError("impossible");
              }
            }
        }
        throw new AssertionError("impossible");
      }
    
      private LongMath() {}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SortedListsTest.java

            break;
          case LAST_BEFORE:
            if (list.contains(key)) {
              assertEquals(list.indexOf(key) - 1, answer);
              return;
            }
            break;
          default:
            throw new AssertionError();
        }
        // key is not present
        int nextHigherIndex = list.size();
        for (int i = list.size() - 1; i >= 0 && list.get(i) > key; i--) {
          nextHigherIndex = i;
        }
        switch (absentBehavior) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        } catch (AssertionError expected) {
          return;
        }
        fail();
      }
    
      public void testAssertSubtypeTokenBeforeSupertypeToken_duplicate() {
        try {
          assertSubtypeTokenBeforeSupertypeToken(
              ImmutableList.of(TypeToken.of(String.class), TypeToken.of(String.class)));
        } catch (AssertionError expected) {
          return;
        }
        fail();
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

                  public Integer call() throws Exception {
                    enterLatch.countDown();
                    try {
                      new CountDownLatch(1).await(); // wait forever
                      throw new AssertionError();
                    } catch (InterruptedException e) {
                      interruptedExceptionThrown.set(true);
                      throw e;
                    } finally {
                    }
                  }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/ToDoubleRounder.java

                case HALF_UP:
                  return (sign(x) >= 0) ? roundCeilingAsDouble : roundFloorAsDouble;
                default:
                  throw new AssertionError("impossible");
              }
            }
        }
        throw new AssertionError("impossible");
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      // TODO(dpb): Use Expect once that supports JUnit 3, or we can use JUnit 4.
      final List<AssertionError> failures = new ArrayList<>();
      final StandardSubjectBuilder expect =
          StandardSubjectBuilder.forCustomFailureStrategy(
              new FailureStrategy() {
                @Override
                public void fail(AssertionError failure) {
                  failures.add(failure);
                }
              });
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

                              threadSum -= oldValue;
                            }
                            break;
                          default:
                            throw new AssertionError();
                        }
                      }
                      return threadSum;
                    }
                  }));
        }
        threadPool.shutdown();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.2K bytes
    - Viewed (0)
Back to top