Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 2,240 for throwIf (0.06 seconds)

  1. android/guava/src/com/google/common/io/CharSource.java

       * it does.
       *
       * @throws IOException if an I/O error occurs while reading from this source or if {@code
       *     processor} throws an {@code IOException}
       * @since 16.0
       */
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      public <T extends @Nullable Object> T readLines(LineProcessor<T> processor) throws IOException {
        checkNotNull(processor);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

       * sees an Error?
       */
      @AndroidIncompatible
      public void testTaskThrowsError() throws Exception {
        class MyError extends Error {}
        CyclicBarrier barrier = new CyclicBarrier(2);
        // we need to make sure the error gets thrown on a different thread.
        ExecutorService service = newSingleThreadExecutor();
        try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/ImmutableBiMap.java

      final ImmutableSet<V> createValues() {
        throw new AssertionError("should never be called");
      }
    
      /**
       * Guaranteed to throw an exception and leave the bimap unmodified.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 22.2K bytes
    - Click Count (0)
  4. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          assertThat(expected).hasMessageThat().contains("[null]");
          foundProblem = true;
        }
        assertTrue("Should report error when different exception is thrown", foundProblem);
      }
    
      public void testMessageNoException() throws Exception {
        Method method = OneArg.class.getMethod("staticOneArgShouldThrowNpeButDoesnt", String.class);
        boolean foundProblem = false;
        try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 47.9K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       * null will be returned.
       *
       * @throws ParameterNotInstantiableException if the static methods cannot be invoked because the
       *     default value of a parameter cannot be determined.
       * @throws IllegalAccessException if the class isn't public or is nested inside a non-public
       *     class, preventing its methods from being accessible.
       * @throws InvocationTargetException if a static method threw exception.
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 32.5K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/core/naming/InitialContextUtil.java

         * @return The object bound to <code>jndiName</code>.
         * @throws NamingRuntimeException
         *             Thrown if the initial context cannot be created.
         */
        public static Object lookup(final InitialContext ctx, final String jndiName) throws NamingRuntimeException {
            assertArgumentNotNull("ctx", ctx);
            assertArgumentNotEmpty("jndiName", jndiName);
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

       * throwing exceptions like {@link NoSuchElementException} at the appropriate times, it throws
       * {@link PermittedMetaException} instances, which wrap a set of all exceptions that the iterator
       * could throw during the invocation of that method. This is necessary because, e.g., a call to
       * {@code iterator().remove()} of an unmodifiable list could throw either {@link
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 20.8K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/job/PurgeThumbnailJobTest.java

        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            purgeThumbnailJob = new PurgeThumbnailJob();
    
            // Create a mock ThumbnailManager
            thumbnailManager = new MockThumbnailManager();
    
            ComponentUtil.register(thumbnailManager, "thumbnailManager");
        }
    
        @Override
        protected void tearDown(TestInfo testInfo) throws Exception {
            super.tearDown(testInfo);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/base/AbstractIteratorTest.java

                  throw sneakyThrow(new SomeCheckedException());
                }
              }
            };
    
        // The first time, the sneakily-thrown exception comes out
        assertThrows(SomeCheckedException.class, iter::hasNext);
        // But the second time, AbstractIterator itself throws an ISE
        assertThrows(IllegalStateException.class, iter::hasNext);
      }
    
      public void testException() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java

             *
             * @return Never returns, always throws UnsupportedOperationException
             * @throws UnsupportedOperationException Always thrown as this operation is not supported
             */
            @Override
            public ServletContext getServletContext() {
                throw new UnsupportedOperationException("getServletContext() is not supported in SpnegoFilterConfig");
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:18:23 GMT 2026
    - 18.2K bytes
    - Click Count (3)
Back to Top