Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2601 - 2610 of 3,670 for throwIf (0.04 seconds)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java

          // permitted not to throw because it would be a no-op
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES)
      public void testReplace_absentNullKeyUnsupported() {
        try {
          getMap().replace(null, v3());
        } catch (NullPointerException tolerated) {
          // permitted not to throw because it would be a no-op
        }
        expectUnchanged();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 31 14:51:04 GMT 2024
    - 4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

            Map<Object, Object> sourceMap = new LinkedHashMap<>();
            for (Entry<?, ?> entry : entries) {
              if (sourceMap.put(entry.getKey(), entry.getValue()) != null) {
                throw new UnsupportedOperationException("duplicate key");
              }
            }
            return ImmutableBiMap.copyOf(sourceMap);
          }
        },
        COPY_OF_ENTRIES {
          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 28 19:11:14 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java

        }
    
        @Test
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedMessage = "Offset limit exceeded: 10000";
    
            try {
                throw new ResultOffsetExceededException(expectedMessage);
            } catch (ResultOffsetExceededException e) {
                assertEquals(expectedMessage, e.getMessage());
                assertNull(e.getCause());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/opensearch/config/allcommon/EsAbstractConditionBean.java

                String msg = "The value should not be null: variableName=null value=" + value;
                throw new IllegalArgumentException(msg);
            }
            if (value == null) {
                String msg = "The value should not be null: variableName=" + variableName;
                throw new IllegalArgumentException(msg);
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/opensearch/user/allcommon/EsAbstractConditionBean.java

                String msg = "The value should not be null: variableName=null value=" + value;
                throw new IllegalArgumentException(msg);
            }
            if (value == null) {
                String msg = "The value should not be null: variableName=" + variableName;
                throw new IllegalArgumentException(msg);
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTesterTest.java

        } catch (AssertionError | UnsupportedOperationException expected) {
          // UnsupportedOperationException is what we see on Android.
          return;
        }
        fail("Should have thrown");
      }
    
      @AndroidIncompatible // TODO(cpovirk): java.lang.IllegalAccessError: superclass not accessible
      public void testSuccessfulForwarding() {
        ForwardingObjectTester.testForwardingObject(ForwardToDelegate.class);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/util/concurrent/AsyncCallable.java

       *
       * <p>Throwing an exception from this method is equivalent to returning a failing {@link
       * ListenableFuture}.
       */
      ListenableFuture<V> call() throws Exception;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/core/exception/PropertyNotFoundRuntimeException.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    /**
     * Exception thrown when a property cannot be found.
     *
     * @author higa
     *
     */
    public class PropertyNotFoundRuntimeException extends ClRuntimeException {
    
        private static final long serialVersionUID = -5177019197796206774L;
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenContext.java

            super(invokerRequest, containerCapsuleManaged, mavenOptions);
        }
    
        public SimplexTransferListener simplexTransferListener;
        public Maven maven;
    
        @Override
        public void doCloseContainer() throws Exception {
            try {
                super.doCloseContainer();
            } finally {
                maven = null;
            }
        }
    
        @Override
        public MavenOptions options() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Sep 11 17:20:46 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  10. build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/PreparePatchReleaseTest.groovy

            "8.0.0" | "8.0.1"
            "1.2.3" | "1.2.4"
        }
    
        def "invalid version format is rejected"() {
            when:
            ReleasedVersionsHelperKt.bumpPatchVersion(version)
    
            then:
            thrown(IllegalArgumentException)
    
            where:
            version << ["9.4", "9", "9.4.0.1", "not.a.version", "9.4.0-SNAPSHOT"]
        }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:47:12 GMT 2026
    - 1.3K bytes
    - Click Count (0)
Back to Top