- Sort Score
- Result 10 results
- Languages All
Results 411 - 420 of 474 for NullPointerException (0.57 sec)
-
guava/src/com/google/common/primitives/Chars.java
* * @param collection a collection of {@code Character} 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 char[] toArray(Collection<Character> collection) { if (collection instanceof CharArrayAsList) {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
guava/src/com/google/common/base/Predicates.java
* * <ul> * <li>The {@link Predicate} returned by this method is {@link Serializable}. * <li>The {@link Predicate} returned by this method catches {@link ClassCastException} and * {@link NullPointerException}. * <li>Code that chains multiple predicates together (especially negations) may be more readable * using this method. For example, {@code not(in(target))} is generally more readable than
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 26.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSetMultimap.java
* safe to do so. The exact circumstances under which a copy will or will not be performed are * undocumented and subject to change. * * @throws NullPointerException if any key or value in {@code multimap} is null */ public static <K, V> ImmutableSetMultimap<K, V> copyOf( Multimap<? extends K, ? extends V> multimap) { return copyOf(multimap, null); }Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/DoublesTest.java
} } } } public void testToArray_withNull() { List<@Nullable Double> list = Arrays.asList(0.0, 1.0, null); assertThrows(NullPointerException.class, () -> Doubles.toArray(list)); } public void testToArray_withConversion() { double[] array = {0.0, 1.0, 2.0}; List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/LongsTest.java
assertThat(arr[j]).isEqualTo(VALUES[j]); } } } } public void testToArray_withNull() { List<@Nullable Long> list = Arrays.asList(0L, 1L, null); assertThrows(NullPointerException.class, () -> Longs.toArray(list)); } public void testToArray_withConversion() { long[] array = {0L, 1L, 2L}; List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 28.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/CrawlJobTest.java
private static final long serialVersionUID = 1L; public TestFessConfig() { super(); // Initialize the properties to avoid NullPointerException try { java.lang.reflect.Field propField = org.lastaflute.core.direction.ObjectiveConfig.class.getDeclaredField("prop"); propField.setAccessible(true);Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 25K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
private final String justAfterNull; protected NullsBefore(String justAfterNull) { if (justAfterNull == null) { throw new NullPointerException(); } this.justAfterNull = justAfterNull; } @Override public int compare(@Nullable String lhs, @Nullable String rhs) { if (lhs == rhs) { return 0;Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 17.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BytesTest.java
} } } } public void testToArray_withNull() { List<@Nullable Byte> list = Arrays.asList((byte) 0, (byte) 1, null); assertThrows(NullPointerException.class, () -> Bytes.toArray(list)); } public void testToArray_withConversion() { byte[] array = {(byte) 0, (byte) 1, (byte) 2}; List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
} @Test @DisplayName("Null treeConnection throws NPE") void constructorNullTreeConnection() { // Null treeConnection throws NPE when acquire() is called assertThrows(NullPointerException.class, () -> new SmbTreeHandleImpl(resourceLoc, null)); } @Test @DisplayName("Null resourceLoc is accepted but may cause issues later") void constructorNullResourceLoc() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
assertEquals(2, (int) result.next()); assertThrows(NullPointerException.class, () -> result.hasNext()); assertThrows(NullPointerException.class, () -> result.next()); // There is no way to get "through" to the 3. Buh-bye } public void testConcatVarArgsContainingNull() { assertThrows( NullPointerException.class, () -> Iterators.concat(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 54.4K bytes - Viewed (0)