- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 356 for NullPointerException (0.14 sec)
-
android/guava-tests/test/com/google/common/collect/RangeTest.java
public void testEncloseAll_nullValue() { List<@Nullable Integer> nullFirst = Lists.newArrayList(null, 0); assertThrows(NullPointerException.class, () -> Range.encloseAll((List<Integer>) nullFirst)); List<@Nullable Integer> nullNotFirst = Lists.newArrayList(0, null); assertThrows(NullPointerException.class, () -> Range.encloseAll((List<Integer>) nullNotFirst)); } public void testEquivalentFactories() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.1K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Booleans.java
* * @param collection a collection of {@code Boolean} objects * @return an array containing the same values as {@code collection}, in the same order, converted * to primitives * @throws NullPointerException if {@code collection} or any of its elements is null */ public static boolean[] toArray(Collection<Boolean> collection) { if (collection instanceof BooleanArrayAsList) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 20.5K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Booleans.java
* * @param collection a collection of {@code Boolean} objects * @return an array containing the same values as {@code collection}, in the same order, converted * to primitives * @throws NullPointerException if {@code collection} or any of its elements is null */ public static boolean[] toArray(Collection<Boolean> collection) { if (collection instanceof BooleanArrayAsList) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProviderTest.java
} catch (ProvidedClassificationNotFoundException e) { // expected assertTrue(e.getMessage().contains("Not found the classification: null")); } catch (NullPointerException e) { // Also acceptable if null is not handled explicitly } } public void test_findOnMainSchema_alwaysReturnsNull() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt
.build() assertThat(headers.toString()).isEqualTo("header1: valué1\n") } // Fails on JS, ClassCastException: Illegal cast @Test fun ofMapThrowsOnNull() { assertFailsWith<NullPointerException> { (mapOf("User-Agent" to null) as Map<String, String>).toHeaders() } } @Test fun toMultimapGroupsHeaders() { val headers = Headers.headersOf( "cache-control",
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:51:25 UTC 2025 - 5.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java
} @CollectionSize.Require(absent = ZERO) @ListFeature.Require(SUPPORTS_SET) @CollectionFeature.Require(absent = ALLOWS_NULL_VALUES) public void testSet_nullUnsupported() { assertThrows(NullPointerException.class, () -> getList().set(aValidIndex(), null)); expectUnchanged(); } private int aValidIndex() { return getList().size() / 2; } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java
} expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS) public void testComputeIfAbsent_nullKeyUnsupported() { assertThrows( NullPointerException.class, () -> getMap() .computeIfAbsent( null, k -> { assertNull(k); return v3();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 6.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java
@MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) public void testAddNullValueUnsupported() { Collection<V> result = multimap().asMap().get(k0()); assertThrows(NullPointerException.class, () -> result.add(null)); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_PUT) public void testPropagatesAddToMultimap() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 5.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/HashBasedTable.java
} /** * Creates a {@code HashBasedTable} with the same mappings as the specified table. * * @param table the table to copy * @throws NullPointerException if any of the row keys, column keys, or values in {@code table} is * null */ public static <R, C, V> HashBasedTable<R, C, V> create( Table<? extends R, ? extends C, ? extends V> table) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 4.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/HashBasedTable.java
} /** * Creates a {@code HashBasedTable} with the same mappings as the specified table. * * @param table the table to copy * @throws NullPointerException if any of the row keys, column keys, or values in {@code table} is * null */ public static <R, C, V> HashBasedTable<R, C, V> create( Table<? extends R, ? extends C, ? extends V> table) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 4.1K bytes - Viewed (0)