- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 426 for NullPointerException (2.01 sec)
-
guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java
public void testGetNullAbsent() { assertEmpty(multimap().get(null)); } @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES) public void testGetNullForbidden() { assertThrows(NullPointerException.class, () -> multimap().get(null)); } @MapFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testGetWithNullValue() { initMultimapWithNullValue();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
TransTransactNamedPipeResponse nullBufferResponse = new TransTransactNamedPipeResponse(mockConfig, null); byte[] buffer = new byte[100]; assertThrows(NullPointerException.class, () -> nullBufferResponse.readDataWireFormat(buffer, 0, 50)); } @Test void testReadDataWireFormatEmptyOutputBuffer() throws SMBProtocolDecodingException { // Test with empty outputBuffer
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingSortedMap.java
Object ceilingKey = self.tailMap(key).firstKey(); return unsafeCompare(comparator(), ceilingKey, key) == 0; } catch (ClassCastException | NoSuchElementException | NullPointerException e) { return false; } } /** * A sensible default implementation of {@link #subMap(Object, Object)} in terms of {@link
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 16:28:01 UTC 2025 - 5.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/Streams.java
* streams. * * <p>If the stream has nondeterministic order, this has equivalent semantics to {@link * Stream#findAny} (which you might as well use). * * @see Stream#findFirst() * @throws NullPointerException if the last element of the stream is null */ /* * By declaring <T> instead of <T extends @Nullable Object>, we declare this method as requiring aRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 36.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
@DisplayName("Should throw exception for null encryption key") void testNullEncryptionKey() { // When/Then assertThrows(NullPointerException.class, () -> { new Smb2EncryptionContext(1, DialectVersion.SMB311, null, testDecryptionKey); }, "Should throw NullPointerException for null encryption key"); } @Test @DisplayName("Should throw exception for null decryption key")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/Session.java
* @return the derived session * @throws NullPointerException if {@code repositories} is null */ @Nonnull Session withRemoteRepositories(@Nonnull List<RemoteRepository> repositories); /** * Register the given listener which will receive all events. * * @param listener the listener to register * @throws NullPointerException if {@code listener} is null */Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Jul 03 14:18:26 UTC 2025 - 36.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
* Objects.equals(o, element)} would return {@code true}. Otherwise returns {@code false}, even in * cases where {@link Collection#contains} might throw {@link NullPointerException} or {@link * ClassCastException}. */ public static boolean contains(Iterable<?> iterable, @Nullable Object element) { if (iterable instanceof Collection) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 16 18:35:28 UTC 2025 - 43.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Ordering.java
// Natural order /** * Returns a serializable ordering that uses the natural order of the values. The ordering throws * a {@link NullPointerException} when passed a null parameter. * * <p>The type specification is {@code <C extends Comparable>}, instead of the technically correctRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 17:50:58 UTC 2025 - 39.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 16:19:35 UTC 2024 - 13.8K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.1K bytes - Viewed (0)