Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 541 - 550 of 863 for IllegalArgumentException (0.13 seconds)

  1. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertThrows(
            IllegalArgumentException.class, () -> TypeToken.of(Object.class).constructor(constructor));
      }
    
      public void testConstructor_declaredBySuperclass() throws NoSuchMethodException {
        Constructor<Object> constructor = Object.class.getConstructor();
        assertThrows(
            IllegalArgumentException.class, () -> TypeToken.of(String.class).constructor(constructor));
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
  2. 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" } };
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/HashBiMap.java

        return create(16);
      }
    
      /**
       * Constructs a new, empty bimap with the specified expected size.
       *
       * @param expectedSize the expected number of entries
       * @throws IllegalArgumentException if the specified expected size is negative
       */
      public static <K extends @Nullable Object, V extends @Nullable Object> HashBiMap<K, V> create(
          int expectedSize) {
        return new HashBiMap<>(expectedSize);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java

          return this;
        }
    
        /**
         * Returns a new immutable type-to-instance map containing the entries provided to this builder.
         *
         * @throws IllegalArgumentException if duplicate keys were added
         */
        public ImmutableTypeToInstanceMap<B> build() {
          return new ImmutableTypeToInstanceMap<>(mapBuilder.buildOrThrow());
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/graph/StandardValueGraph.java

      private final GraphConnections<N, V> checkedConnections(N node) {
        GraphConnections<N, V> connections = nodeConnections.get(node);
        if (connections == null) {
          checkNotNull(node);
          throw new IllegalArgumentException("Node " + node + " is not an element of this graph.");
        }
        return connections;
      }
    
      final boolean containsNode(@Nullable N node) {
        return nodeConnections.containsKey(node);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 6K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/dcerpc/UUID.java

                case 'c':
                case 'd':
                case 'e':
                case 'f':
                    value += 10 + arr[ai] - 'a';
                    break;
                default:
                    throw new IllegalArgumentException(new String(arr, offset, length));
                }
                count++;
            }
    
            return value;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/dict/DictionaryExceptionTest.java

            assertNull(exception.getCause());
        }
    
        @Test
        public void test_constructor_withNullMessageAndCause() {
            // Test constructor with null message but valid cause
            Exception cause = new IllegalArgumentException("Invalid argument");
            DictionaryException exception = new DictionaryException(null, cause);
    
            assertNotNull(exception);
            assertNull(exception.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java

         * @param bytes the 16-byte GUID data in little-endian format (SMB wire format)
         */
        public HandleGuid(byte[] bytes) {
            if (bytes.length != 16) {
                throw new IllegalArgumentException("GUID must be 16 bytes");
            }
    
            // MS-SMB2 specifies little-endian byte ordering for GUID components
            // Convert from little-endian wire format to Java UUID
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/Lists.java

       * @return a new, empty {@code ArrayList} which is guaranteed not to resize itself unless its size
       *     reaches {@code initialArraySize + 1}
       * @throws IllegalArgumentException if {@code initialArraySize} is negative
       */
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <E extends @Nullable Object> ArrayList<E> newArrayListWithCapacity(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.5K bytes
    - Click Count (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/LayeredMavenOptions.java

        public static MavenOptions layerMavenOptions(Collection<MavenOptions> options) {
            List<MavenOptions> o = options.stream().filter(Objects::nonNull).toList();
            if (o.isEmpty()) {
                throw new IllegalArgumentException("No options specified (or all were null)");
            } else if (o.size() == 1) {
                return o.get(0);
            } else {
                return new LayeredMavenOptions<>(o);
            }
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 5.4K bytes
    - Click Count (0)
Back to Top