Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 344 for NullPointerException (0.11 sec)

  1. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

            }
          }
        }
      }
    
      public void testToArray_withNull() {
        List<@Nullable Float> list = Arrays.asList((float) 0, (float) 1, null);
        assertThrows(NullPointerException.class, () -> Floats.toArray(list));
      }
    
      public void testToArray_withConversion() {
        float[] array = {(float) 0, (float) 1, (float) 2};
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/IntsTest.java

            }
          }
        }
      }
    
      public void testToArray_withNull() {
        List<@Nullable Integer> list = Arrays.asList((int) 0, (int) 1, null);
        assertThrows(NullPointerException.class, () -> Ints.toArray(list));
      }
    
      public void testToArray_withConversion() {
        int[] array = {0, 1, 2};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/DoublesTest.java

            }
          }
        }
      }
    
      public void testToArray_withNull() {
        List<@Nullable Double> list = Arrays.asList((double) 0, (double) 1, null);
        assertThrows(NullPointerException.class, () -> Doubles.toArray(list));
      }
    
      public void testToArray_withConversion() {
        double[] array = {(double) 0, (double) 1, (double) 2};
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/FloatsTest.java

            }
          }
        }
      }
    
      public void testToArray_withNull() {
        List<@Nullable Float> list = Arrays.asList((float) 0, (float) 1, null);
        assertThrows(NullPointerException.class, () -> Floats.toArray(list));
      }
    
      public void testToArray_withConversion() {
        float[] array = {(float) 0, (float) 1, (float) 2};
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/LongsTest.java

            }
          }
        }
      }
    
      public void testToArray_withNull() {
        List<@Nullable Long> list = Arrays.asList((long) 0, (long) 1, null);
        assertThrows(NullPointerException.class, () -> Longs.toArray(list));
      }
    
      public void testToArray_withConversion() {
        long[] array = {(long) 0, (long) 1, (long) 2};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/SmbResource.java

         * new <tt>SmbResource</tt></i>.
         *
         * @param dest
         *            An <code>SmbResource</code> that represents the new pathname
         * @throws CIFSException
         * @throws NullPointerException
         *             If the <code>dest</code> argument is <code>null</code>
         */
        void renameTo ( SmbResource dest ) throws CIFSException;
    
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 26K bytes
    - Viewed (1)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

              @Override
              public String toString() {
                throw new NullPointerException();
              }
            });
        assertThat(orig.toString())
            .contains(
                "[status=PENDING, setFuture=[Exception thrown from implementation: class"
                    + " java.lang.NullPointerException]]");
      }
    
      public void testSetIndirectSelf_toString() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Lists.java

       * @throws IllegalArgumentException if the size of the cartesian product would be greater than
       *     {@link Integer#MAX_VALUE}
       * @throws NullPointerException if {@code lists}, any one of the {@code lists}, or any element of
       *     a provided list is null
       * @since 19.0
       */
      public static <B> List<List<B>> cartesianProduct(List<? extends List<? extends B>> lists) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  9. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

          assertEquals(0, cache.size());
    
          entry.setValue(3);
          assertEquals(1, cache.size());
          assertEquals(3, cache.getIfPresent(1));
          checkValidState(cache);
    
          assertThrows(NullPointerException.class, () -> entry.setValue(null));
          checkValidState(cache);
        }
      }
    
      /* ---------------- Local utilities -------------- */
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top