Search Options

Results per page
Sort
Preferred Languages
Advance

Results 461 - 470 of 628 for IllegalArgumentException (0.63 sec)

  1. guava/src/com/google/common/collect/EnumMultiset.java

       *
       * <p>This implementation is highly efficient when {@code elements} is itself a {@link Multiset}.
       *
       * @param elements the elements that the multiset should contain
       * @throws IllegalArgumentException if {@code elements} is empty
       */
      public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) {
        Iterator<E> iterator = elements.iterator();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Suppliers.java

       * @param duration the length of time after a value is created that it should stop being returned
       *     by subsequent {@code get()} calls
       * @param unit the unit that {@code duration} is expressed in
       * @throws IllegalArgumentException if {@code duration} is not positive
       * @since 2.0
       */
      @SuppressWarnings("GoodTime") // Prefer the Duration overload
      public static <T extends @Nullable Object> Supplier<T> memoizeWithExpiration(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/JobProcessingExceptionTest.java

            assertNull(exception.getCause());
        }
    
        public void test_constructor_withCauseChain() {
            // Test constructor with chained exceptions
            final Exception rootCause = new IllegalArgumentException("Invalid argument");
            final Exception middleCause = new RuntimeException("Runtime error", rootCause);
            final JobProcessingException exception = new JobProcessingException(middleCause);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/FakeTickerTest.java

              30,
              ticker.read());
        }
      }
    
      public void testAutoIncrement_negative() {
        FakeTicker ticker = new FakeTicker();
        assertThrows(
            IllegalArgumentException.class, () -> ticker.setAutoIncrementStep(-1, NANOSECONDS));
      }
    
      @GwtIncompatible // concurrency
    
      public void testConcurrentAdvance() throws Exception {
        FakeTicker ticker = new FakeTicker();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableEnumMapTest.java

        Collector<Entry<AnEnum, Integer>, ?, ImmutableMap<AnEnum, Integer>> collector =
            toImmutableEnumMap(Entry::getKey, Entry::getValue);
        assertThrows(
            IllegalArgumentException.class,
            () -> Stream.of(mapEntry(AnEnum.A, 1), mapEntry(AnEnum.A, 11)).collect(collector));
      }
    
      public void testToImmutableMapMerging() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

            this.handle.send(buf, off, length);
        }
    
        @Override
        protected int doReceiveFragment(final byte[] buf) throws IOException {
            if (buf.length < getMaxRecv()) {
                throw new IllegalArgumentException("buffer too small");
            }
    
            int off = this.handle.recv(buf, 0, buf.length);
            if (buf[0] != 5 || buf[1] != 0) {
                throw new IOException("Unexpected DCERPC PDU header");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

        for (String name : VALID_NAME) {
          InternetDomainName unused = InternetDomainName.from(name);
        }
      }
    
      public void testInvalid() {
        for (String name : INVALID_NAME) {
          assertThrows(IllegalArgumentException.class, () -> InternetDomainName.from(name));
        }
      }
    
      public void testPublicSuffix() {
        for (String name : PS) {
          InternetDomainName domain = InternetDomainName.from(name);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            assertEquals(2.5f, item2.getUserBoost(), 0.001f); // Should keep the value
        }
    
        @Test(expected = IllegalArgumentException.class)
        public void testMergeDifferentIds() {
            // Test that merge throws exception for different IDs
            String[] text1 = { "item1" };
            String[][] readings1 = { { "read1" } };
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/IoTestCase.java

          try {
            File testFile = new File(testFileUrl.toURI());
            testDir = testFile.getParentFile(); // the testdata directory
          } catch (Exception ignore) {
            // probably URISyntaxException or IllegalArgumentException
            // fall back to copying URLs to files in the testDir == null block below
          }
        }
    
        if (testDir == null) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * @param timeoutUnit with timeoutDuration, the maximum length of time that callers are willing to
       *     wait on each method call to the proxy
       * @return a time-limiting proxy
       * @throws IllegalArgumentException if {@code interfaceType} is a regular class, enum, or
       *     annotation type, rather than an interface
       */
      <T> T newProxy(T target, Class<T> interfaceType, long timeoutDuration, TimeUnit timeoutUnit);
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 8.2K bytes
    - Viewed (0)
Back to top