Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2121 - 2130 of 2,371 for Try (0.01 seconds)

  1. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        assertThat(keyType.getType().toString()).isEqualTo("java.util.List<K1>");
      }
    
      private static Type genericReturnType(Class<?> cls, String methodName) {
        try {
          return cls.getMethod(methodName).getGenericReturnType();
        } catch (Exception e) {
          throw new RuntimeException(e);
        }
      }
    
      public void testTwoStageResolution() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

        CyclicBarrier firstBarrier = new CyclicBarrier(2);
        CyclicBarrier secondBarrier = new CyclicBarrier(2);
        AtomicBoolean shouldWait = new AtomicBoolean(true);
        Runnable task =
            () -> {
              try {
                if (shouldWait.get()) {
                  firstBarrier.await();
                  secondBarrier.await();
                }
              } catch (Exception e) {
                throw new RuntimeException(e);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/CollectSpliterators.java

            this.holder = t;
          }
    
          @Override
          public boolean tryAdvance(Consumer<? super T> action) {
            while (fromSpliterator.tryAdvance(this)) {
              try {
                // The cast is safe because tryAdvance puts a T into `holder`.
                T next = uncheckedCastNullableTToT(holder);
                if (predicate.test(next)) {
                  action.accept(next);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

        CyclicBarrier firstBarrier = new CyclicBarrier(2);
        CyclicBarrier secondBarrier = new CyclicBarrier(2);
        AtomicBoolean shouldWait = new AtomicBoolean(true);
        Runnable task =
            () -> {
              try {
                if (shouldWait.get()) {
                  firstBarrier.await();
                  secondBarrier.await();
                }
              } catch (Exception e) {
                throw new RuntimeException(e);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        assertThat(keyType.getType().toString()).isEqualTo("java.util.List<K1>");
      }
    
      private static Type genericReturnType(Class<?> cls, String methodName) {
        try {
          return cls.getMethod(methodName).getGenericReturnType();
        } catch (Exception e) {
          throw new RuntimeException(e);
        }
      }
    
      public void testTwoStageResolution() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  6. fastapi/_compat/v2.py

        def validate(
            self,
            value: Any,
            values: dict[str, Any] = {},  # noqa: B006
            *,
            loc: tuple[int | str, ...] = (),
        ) -> tuple[Any, list[dict[str, Any]]]:
            try:
                return (
                    self._type_adapter.validate_python(value, from_attributes=True),
                    [],
                )
            except ValidationError as exc:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  7. fastapi/openapi/models.py

    from pydantic import (
        AnyUrl,
        BaseModel,
        Field,
        GetJsonSchemaHandler,
    )
    from typing_extensions import TypedDict
    from typing_extensions import deprecated as typing_deprecated
    
    try:
        import email_validator
    
        assert email_validator  # make autoflake ignore the unused import
        from pydantic import EmailStr
    except ImportError:  # pragma: no cover
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 14.2K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            when(ctx.getConfig()).thenReturn(config);
            when(ctx.getCredentials()).thenReturn(creds);
            when(ctx.getNameServiceClient()).thenReturn(nsc);
        }
    
        private static URL smbUrl(String spec) {
            try {
                return new URL(null, spec, SMB_HANDLER);
            } catch (Exception e) {
                throw new AssertionError(e);
            }
        }
    
        private SmbResourceLocatorImpl locator(String spec) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/general/AdminGeneralAction.java

            dataMap.put("hostname", systemHelper.getHostname());
    
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            final Postbox postbox = ComponentUtil.getComponent(Postbox.class);
            try {
                TestmailPostcard.droppedInto(postbox, postcard -> {
                    postcard.setFrom(fessConfig.getMailFromAddress(), fessConfig.getMailFromName());
                    postcard.addReplyTo(fessConfig.getMailReturnPath());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 05:54:31 GMT 2026
    - 27.2K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/Streams.java

        // first as suppressed exceptions. We don't catch Error on the grounds that it should be allowed
        // to propagate immediately.
        Exception exception = null;
        for (BaseStream<?, ?> stream : toClose) {
          try {
            stream.close();
          } catch (Exception e) { // sneaky checked exception
            if (exception == null) {
              exception = e;
            } else {
              exception.addSuppressed(e);
            }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 36.4K bytes
    - Click Count (0)
Back to Top