Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for IllegalArgumentException (0.16 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientCreator.java

         * @param maxClientFactorySize The maximum size.
         */
        public void setMaxClientFactorySize(final int maxClientFactorySize) {
            if (maxClientFactorySize <= 0) {
                throw new IllegalArgumentException("maxClientFactorySize must be positive.");
            }
            this.maxClientFactorySize = maxClientFactorySize;
        }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/request/Request.java

         */
        public Deferred<T>.Promise execute(final Client client) {
            final String error = getValidationError();
            if (!Strings.isNullOrEmpty(error)) {
                throw new IllegalArgumentException(error);
            }
    
            final Deferred<T> deferred = new Deferred<>();
            try {
                processRequest(client, deferred);
            } catch (final Exception e) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/opensearch/extension/analysis/NumberConcatenationFilterFactory.java

                    suffixWords = WordlistLoader.getWordSet(reader);
                } catch (final IOException e) {
                    throw new IllegalArgumentException("Could not load " + suffixWordsFile.getAbsolutePath(), e);
                }
            } else {
                suffixWords = new CharArraySet(0, false);
            }
        }
    
        @Override
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sun May 18 02:59:16 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

         * </p>
         *
         * @param value the object to be converted to a list of strings
         * @return a list of strings representing the given object
         * @throws IllegalArgumentException if the object is not a string or a list
         */
        public static List<String> getAsList(final Object value) {
            if (value == null) {
                return new ArrayList<>();
            }
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 17.4K bytes
    - Viewed (1)
  5. 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)
  6. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

                if (map != null) {
                    synonymMap = map;
                    fst = synonymMap.fst;
                    if (fst == null) {
                        throw new IllegalArgumentException("fst must be non-null");
                    }
                    fstReader = fst.getBytesReader();
                    scratchArc = new FST.Arc<>();
                    clearAttributes();
                }
            }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 17K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

         */
        @Override
        public ResponseData doGet(final String url) {
            HttpUriRequest httpGet;
            try {
                httpGet = new HttpGet(url);
            } catch (final IllegalArgumentException e) {
                throw new CrawlingAccessException("The url may not be valid: " + url, e);
            }
            return doHttpMethod(url, httpGet);
        }
    
        /*
         * (non-Javadoc)
         *
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 52.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

            assertNotNull(resultList);
            assertEquals(3, resultList.size());
            assertEquals(originalList, resultList);
        }
    
        @Test(expected = IllegalArgumentException.class)
        public void testGetAsListWithInvalidType() {
            // Test with invalid type (should throw exception)
            SuggestUtil.getAsList(123);
        }
    
        @Test
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

         * @return The merged suggest item.
         */
        public static SuggestItem merge(final SuggestItem item1, final SuggestItem item2) {
            if (!item1.getId().equals(item2.getId())) {
                throw new IllegalArgumentException("Item id is mismatch.");
            }
    
            final SuggestItem mergedItem = new SuggestItem();
    
            mergedItem.id = item1.getId();
            mergedItem.text = item1.getText();
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 25.1K bytes
    - Viewed (0)
Back to top