Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for CCE (0.01 sec)

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

        assertTrue(set.contains(2));
        assertTrue(set.contains(3));
        assertFalse(set.contains(4));
      }
    
      // TODO: https://youtrack.jetbrains.com/issue/KT-71001/ - Enable when Kotlin throws expected CCE.
      @J2ktIncompatible
      public void testContains_typeMismatch() {
        ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.open(0, 4), integers());
        assertFalse(set.contains((Object) "blah"));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Cut.java

      }
    
      C endpoint() {
        return endpoint;
      }
    
      @SuppressWarnings("unchecked") // catching CCE
      @Override
      public boolean equals(@Nullable Object obj) {
        if (obj instanceof Cut) {
          // It might not really be a Cut<C>, but we'll catch a CCE if it's not
          Cut<C> that = (Cut<C>) obj;
          try {
            int compareResult = compareTo(that);
            return compareResult == 0;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertTrue(set.contains(2));
        assertTrue(set.contains(3));
        assertFalse(set.contains(4));
      }
    
      // TODO: https://youtrack.jetbrains.com/issue/KT-71001/ - Enable when Kotlin throws expected CCE.
      @J2ktIncompatible
      public void testContains_typeMismatch() {
        ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.open(0, 4), integers());
        assertFalse(set.contains((Object) "blah"));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

        // Pretend the comparator can compare anything. If it turns out it can't
        // compare a and b, we should get a CCE or NPE on the subsequent line. Only methods
        // that are spec'd to throw CCE and NPE should call this.
        @SuppressWarnings({"unchecked", "nullness"})
        Comparator<@Nullable Object> unsafeComparator = (Comparator<@Nullable Object>) comparator;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SetViewTest.java

        new EqualsTester()
            .addEqualityGroup(new SetContainsThrows())
            .addEqualityGroup(intersection(singleton(null), singleton(null))) // NPE
            .addEqualityGroup(intersection(singleton(0), singleton(0))) // CCE
            .testEquals();
      }
    
      /** Returns a {@link Set} with a {@link Set#size()} of {@code size}. */
      private static ContiguousSet<Integer> setSize(int size) {
        checkArgument(size >= 0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.9K bytes
    - Viewed (0)
Back to top