- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 344 for NullPointerException (0.13 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/ReflectionFreeAssertThrows.java
.put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException) .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException) .put(NullPointerException.class, e -> e instanceof NullPointerException) .put(NumberFormatException.class, e -> e instanceof NumberFormatException) .put(RuntimeException.class, e -> e instanceof RuntimeException)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java
this(new TreeMap<K, V>(map)); } private SafeTreeMap(NavigableMap<K, V> delegate) { this.delegate = delegate; if (delegate == null) { throw new NullPointerException(); } for (K k : keySet()) { checkValid(k); } } @Override public @Nullable Entry<K, V> ceilingEntry(K key) { return delegate.ceilingEntry(checkValid(key)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 7.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java
expectContents(expected); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS) public void testPut_nullKeyUnsupported() { assertThrows(NullPointerException.class, () -> put(nullKeyEntry)); expectUnchanged(); expectNullKeyMissingWhenNullKeysUnsupported( "Should not contain null key after unsupported put(null, value)"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 9.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/Collections2.java
* throws a {@code ClassCastException} or {@code NullPointerException}. */ static boolean safeContains(Collection<?> collection, @CheckForNull Object object) { checkNotNull(collection); try { return collection.contains(object); } catch (ClassCastException | NullPointerException e) { return false; } } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 23.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/InvokableTest.java
ImmutableList.copyOf(returnType.getActualTypeArguments())); } public void testConstructor_exceptionTypes() throws Exception { assertEquals( ImmutableList.of(TypeToken.of(NullPointerException.class)), Prepender.constructor(String.class, int.class).getExceptionTypes()); } public void testConstructor_typeParameters() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
ImmutableList.copyOf(returnType.getActualTypeArguments())); } public void testConstructor_exceptionTypes() throws Exception { assertEquals( ImmutableList.of(TypeToken.of(NullPointerException.class)), Prepender.constructor(String.class, int.class).getExceptionTypes()); } public void testConstructor_typeParameters() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/CharEscaper.java
protected CharEscaper() {} /** * Returns the escaped form of a given literal string. * * @param string the literal string to be escaped * @return the escaped form of {@code string} * @throws NullPointerException if {@code string} is null */ @Override public String escape(String string) { checkNotNull(string); // GWT specific check (do not optimize)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 18 20:55:09 UTC 2022 - 6.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/EqualsTester.java
List<Object> list = new ArrayList<>(equalityGroup.length); for (int i = 0; i < equalityGroup.length; i++) { Object element = equalityGroup[i]; if (element == null) { throw new NullPointerException("at index " + i); } list.add(element); } equalityGroups.add(list); return this; } /** Run tests on equals method, throwing a failure on an invalid test */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 31 19:11:50 UTC 2023 - 6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java
public void testRemove_nullNotSupported() { try { assertFalse( "remove(null) should return false or throw NullPointerException", collection.remove(null)); } catch (NullPointerException tolerated) { } expectUnchanged(); } @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_QUERIES}) public void testRemove_nullAllowed() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 5.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java
expectContents(createArrayWithNullKey()); } @MapFeature.Require(absent = ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO) public void testCreateWithNullKeyUnsupported() { assertThrows(NullPointerException.class, () -> initMapWithNullKey()); } @MapFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testCreateWithNullValueSupported() { initMapWithNullValue();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.6K bytes - Viewed (0)