Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 55 for fix (0.21 sec)

  1. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        /*
         * If greatestOf() promised to be implemented as reverse().leastOf(), this
         * test would be enough. It doesn't... but we'll cheat and act like it does
         * anyway. There's a comment there to remind us to fix this if we change it.
         */
        List<Integer> list = Arrays.asList(3, 1, 3, 2, 4, 2, 4, 3);
        assertEquals(Arrays.asList(4, 4, 3, 3), numberOrdering.greatestOf(list, 4));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

            assertThat(value.toString(radix)).isEqualTo(value.bigIntegerValue().toString(radix));
          }
        }
      }
    
      @AndroidIncompatible // b/28251030, re-enable when the fix is everywhere we run this test
      public void testFloatValue() {
        for (long value : TEST_LONGS) {
          UnsignedLong unsignedValue = UnsignedLong.fromLongBits(value);
          assertWithMessage("Float value of " + unsignedValue)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheTesting.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A collection of utilities for {@link Cache} testing.
     *
     * @author mike nonemacher
     */
    @SuppressWarnings("GuardedBy") // TODO(b/35466881): Fix or suppress.
    class CacheTesting {
    
      /**
       * Poke into the Cache internals to simulate garbage collection of the value associated with the
       * given key. This assumes that the associated entry is a WeakValueReference or a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Monitor.java

     *   }
     * }
     * }</pre>
     *
     * @author Justin T. Sampson
     * @author Martin Buchholz
     * @since 10.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @SuppressWarnings("GuardedBy") // TODO(b/35466881): Fix or suppress.
    @ElementTypesAreNonnullByDefault
    public final class Monitor {
      // TODO(user): Use raw LockSupport or AbstractQueuedSynchronizer instead of ReentrantLock.
      // TODO(user): "Port" jsr166 tests for ReentrantLock.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactHashSet.java

       * @return a new {@code CompactHashSet} containing those elements (minus duplicates)
       */
      @SafeVarargs
      @SuppressWarnings("nullness") // TODO: b/316358623 - Remove after checker fix.
      public static <E extends @Nullable Object> CompactHashSet<E> create(E... elements) {
        CompactHashSet<E> set = createWithExpectedSize(elements.length);
        Collections.addAll(set, elements);
        return set;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Converter.java

     *
     * Disclaimer: Part of the reason that callers are so well adapted to `Function<A, B>` may be that
     * that is how the signature looked even prior to this comment! So naturally any change can break
     * existing users, but it can't *fix* existing users because any users who needed
     * `Function<@Nullable A, @Nullable B>` already had to find a workaround. Still, there is a *ton* of
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/LongMath.java

       * @since 20.0
       */
      public static long floorPowerOfTwo(long x) {
        checkPositive("x", x);
    
        // Long.highestOneBit was buggy on GWT.  We've fixed it, but I'm not certain when the fix will
        // be released.
        return 1L << ((Long.SIZE - 1) - Long.numberOfLeadingZeros(x));
      }
    
      /**
       * Returns {@code true} if {@code x} represents a power of two.
       *
    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)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        return fromEntries(comparator, sameComparator, entryArray, entryArray.length);
      }
    
      @SuppressWarnings("nullness") // TODO: b/316358623 - Remove after checker fix.
      private static <K, V> ImmutableSortedMap<K, V> fromEntries(
          final Comparator<? super K> comparator,
          boolean sameComparator,
          @Nullable Entry<K, V>[] entryArray,
          int size) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        try {
          it.next();
          fail("No exception thrown when iterating a modified heap");
        } catch (ConcurrentModificationException expected) {
        }
      }
    
      /** Tests a failure caused by fix to childless uncle issue. */
      public void testIteratorRegressionChildlessUncle() {
        final ArrayList<Integer> initial = Lists.newArrayList(1, 15, 13, 8, 9, 10, 11, 14);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Ordering.java

       *     order
       * @throws IllegalArgumentException if {@code k} is negative
       * @since 8.0
       */
      @SuppressWarnings("nullness") // TODO: b/316358623 - Remove after checker fix.
      public <E extends T> List<E> leastOf(Iterable<E> iterable, int k) {
        if (iterable instanceof Collection) {
          Collection<E> collection = (Collection<E>) iterable;
          if (collection.size() <= 2L * k) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
Back to top