Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for IllegalStateException (0.2 sec)

  1. guava/src/com/google/common/base/Preconditions.java

       * involving any parameters to the calling method.
       *
       * @param expression a boolean expression
       * @throws IllegalStateException if {@code expression} is false
       * @see Verify#verify Verify.verify()
       */
      public static void checkState(boolean expression) {
        if (!expression) {
          throw new IllegalStateException();
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Preconditions.java

       * involving any parameters to the calling method.
       *
       * @param expression a boolean expression
       * @throws IllegalStateException if {@code expression} is false
       * @see Verify#verify Verify.verify()
       */
      public static void checkState(boolean expression) {
        if (!expression) {
          throw new IllegalStateException();
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheBuilder.java

       * high wastes memory.
       *
       * @return this {@code CacheBuilder} instance (for chaining)
       * @throws IllegalArgumentException if {@code initialCapacity} is negative
       * @throws IllegalStateException if an initial capacity was already set
       */
      @CanIgnoreReturnValue
      public CacheBuilder<K, V> initialCapacity(int initialCapacity) {
        checkState(
            this.initialCapacity == UNSET_INT,
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

              executor);
          fail();
        } catch (IllegalStateException expected2) {
        }
        try {
          ClosingFuture.whenAllComplete(asList(closingFuture));
          fail();
        } catch (IllegalStateException expected1) {
        }
        try {
          ClosingFuture.whenAllSucceed(asList(closingFuture));
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

              executor);
          fail();
        } catch (IllegalStateException expected2) {
        }
        try {
          ClosingFuture.whenAllComplete(asList(closingFuture));
          fail();
        } catch (IllegalStateException expected1) {
        }
        try {
          ClosingFuture.whenAllSucceed(asList(closingFuture));
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        assertFailsWith<IllegalStateException> {
          setString(0, "A")
        }
        assertFailsWith<IllegalStateException> {
          newSource(0)
        }
        assertFailsWith<IllegalStateException> {
          newSink(0)
        }
        assertFailsWith<IllegalStateException> {
          commit()
        }
        assertFailsWith<IllegalStateException> {
          abort()
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

            if (request.isProcessPlugins()) {
                if (lifecycleBindingsInjector == null) {
                    throw new IllegalStateException("lifecycle bindings injector is missing");
                }
    
                // lifecycle bindings injection
                resultModel = lifecycleBindingsInjector.injectLifecycleBindings(resultModel, request, problems);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

          iterator.next();
          fail("Expected NoSuchElementException");
        } catch (NoSuchElementException expected) {
        }
        try {
          iterator.remove();
          fail("Expected IllegalStateException");
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testSize0() {
        Iterator<String> iterator = Iterators.emptyIterator();
        assertEquals(0, Iterators.size(iterator));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                            project.setReleaseArtifactRepository(repo);
                        }
                    } catch (InvalidRepositoryException e) {
                        throw new IllegalStateException(
                                "Failed to create release distribution repository for " + project.getId(), e);
                    }
                }
    
                // snapshot artifact repository
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IteratorsTest.java

          iterator.next();
          fail("Expected NoSuchElementException");
        } catch (NoSuchElementException expected) {
        }
        try {
          iterator.remove();
          fail("Expected IllegalStateException");
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testSize0() {
        Iterator<String> iterator = Iterators.emptyIterator();
        assertEquals(0, Iterators.size(iterator));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
Back to top