Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testToArray_emptyArrayOfWrongTypeForNonEmptyCollection (0.36 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

            array[getNumElements()]);
        // array[getNumElements() + 1] might or might not have been nulled
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testToArray_emptyArrayOfWrongTypeForNonEmptyCollection() {
        assertThrows(
            ArrayStoreException.class,
            () -> {
              WrongType[] array = new WrongType[0];
              collection.toArray(array);
            });
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top