Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 631 - 640 of 1,817 for throwIf (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt

        /**
         * Returns a media type for this string.
         *
         * @throws IllegalArgumentException if this is not a well-formed media type.
         */
        @JvmStatic
        @JvmName("get")
        fun String.toMediaType(): MediaType {
          val typeSubtype =
            TYPE_SUBTYPE.matchAt(this, 0)
              ?: throw IllegalArgumentException("No subtype found for: \"$this\"")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 5.9K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt

            this.sameSite = sameSite
          }
    
        fun build(): Cookie =
          Cookie(
            name ?: throw NullPointerException("builder.name == null"),
            value ?: throw NullPointerException("builder.value == null"),
            expiresAt,
            domain ?: throw NullPointerException("builder.domain == null"),
            path,
            secure,
            httpOnly,
            persistent,
            hostOnly,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 23.1K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/job/CrawlJob.java

                    out.append("Exit Code: ").append(exitValue).append("\nOutput:\n").append(it.getOutput());
                    throw new JobProcessingException(out.toString());
                }
            } catch (final JobProcessingException e) {
                throw e;
            } catch (final Exception e) {
                throw new JobProcessingException("Crawler Process terminated.", e);
            } finally {
                try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 19.6K bytes
    - Click Count (0)
  4. guava/src/com/google/common/base/Stopwatch.java

       */
      public boolean isRunning() {
        return isRunning;
      }
    
      /**
       * Starts the stopwatch.
       *
       * @return this {@code Stopwatch} instance
       * @throws IllegalStateException if the stopwatch is already running.
       */
      @CanIgnoreReturnValue
      public Stopwatch start() {
        checkState(!isRunning, "This stopwatch is already running.");
        isRunning = true;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 08 18:55:33 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/query/QueryFieldConfigTest.java

            queryFieldConfig.highlightedFields = null;
    
            // When highlightedFields is null, the method should handle it gracefully
            // or throw an exception. Test the actual behavior.
            queryFieldConfig.highlightedFields(stream -> {
                // If it doesn't throw NPE, it should provide an empty stream
                assertEquals(0, stream.count());
            });
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 33.6K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        fakeTicker = new FakeTicker();
      }
    
      @Test
      public void loader() throws ExecutionException {
        Cache<Integer, Integer> cache = CacheBuilder.newBuilder().build();
    
        Callable<Integer> loader =
            new Callable<Integer>() {
              private int i = 0;
    
              @Override
              public Integer call() throws Exception {
                return ++i;
              }
            };
    
        cache.put(0, 10);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/query/FuzzyQueryCommandTest.java

    import org.opensearch.index.query.QueryBuilder;
    
    public class FuzzyQueryCommandTest extends QueryTestBase {
    
        private FuzzyQueryCommand fuzzyQueryCommand;
    
        @Override
        protected void setUpChild() throws Exception {
            // Initialize and register FuzzyQueryCommand
            fuzzyQueryCommand = new FuzzyQueryCommand();
            fuzzyQueryCommand.register();
        }
    
        // Test getQueryClassName method
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

                lastCommandList = new ArrayList<>(cmdList);
    
                if (exception instanceof RuntimeException) {
                    throw (RuntimeException) exception;
                } else if (exception instanceof InterruptedException) {
                    Thread.currentThread().interrupt();
                    throw new RuntimeException(exception);
                }
    
                return new MockJobProcess(exitValue, output);
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 31.6K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java

    public class MonitorTargetTest extends UnitFessTestCase {
    
        private TestMonitorTarget monitorTarget;
        private SystemHelper systemHelper;
    
        @Override
        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            monitorTarget = new TestMonitorTarget();
    
            // Setup SystemHelper with a fixed timestamp for testing
            systemHelper = new SystemHelper() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.3K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/ldap/LdapManagerTest.java

    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.TestInfo;
    
    public class LdapManagerTest extends UnitFessTestCase {
    
        @Override
        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            ComponentUtil.register(new SystemHelper(), "systemHelper");
        }
    
        @SuppressWarnings("serial")
        @Test
        public void test_getSearchRoleName() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.9K bytes
    - Click Count (0)
Back to Top