Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 41 for NoSuchMethodException (0.4 seconds)

  1. android/guava-tests/test/com/google/common/eventbus/PackageSanityTests.java

        }
    
        private static Method subscriberMethod() {
          try {
            return DummySubscriber.class.getMethod("handle", Object.class);
          } catch (NoSuchMethodException e) {
            throw new AssertionError(e);
          }
        }
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/exception/NoSuchMethodRuntimeException.java

     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    import org.codelibs.core.lang.MethodUtil;
    
    /**
     * Exception that wraps {@link NoSuchMethodException}.
     *
     * @author higa
     */
    public class NoSuchMethodRuntimeException extends ClRuntimeException {
    
        private static final long serialVersionUID = -5673845060079098617L;
    
        /**
         * The target class.
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureAndroidTrustManager.kt

        try {
          delegate::class.java.getMethod(
            "checkServerTrusted",
            Array<X509Certificate>::class.java,
            String::class.java,
            String::class.java,
          )
        } catch (_: NoSuchMethodException) {
          null
        }
    
      /** Android method to clean and sort certificates, called via reflection. */
      @Suppress("unused", "UNCHECKED_CAST")
      fun checkServerTrusted(
        chain: Array<out X509Certificate>,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/logging/Slf4jConfigurationFactory.java

                        }
                    } catch (IOException
                            | ClassNotFoundException
                            | NoSuchMethodException
                            | InvocationTargetException
                            | IllegalAccessException
                            | InstantiationException ex) {
                        // ignore and move on to the next
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Nov 08 08:49:11 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

          throws NoSuchMethodException {
        Method failMethod = Loser.class.getMethod("lose");
        Invokable<T, ?> invokable = new TypeToken<T>(getClass()) {}.method(failMethod);
        assertThat(invokable.getExceptionTypes()).contains(TypeToken.of(AssertionError.class));
      }
    
      public void testConstructor_getOwnerType() throws NoSuchMethodException {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 89K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

            testClass.getMethod(testName);
            return true;
          } catch (NoSuchMethodException e) {
            continue;
          }
        }
        return false;
      }
    
      private static boolean isEqualsDefined(Class<?> cls) {
        try {
          return !cls.getDeclaredMethod("equals", Object.class).isSynthetic();
        } catch (NoSuchMethodException e) {
          return false;
        }
      }
    
      abstract static class Chopper {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

          }
          Class<?> clazz = info.load();
          try {
            Method unused = clazz.getDeclaredMethod("writeReplace");
            continue; // It overrides writeReplace, so it's safe.
          } catch (NoSuchMethodException e) {
            // This is a class whose supertypes we want to examine. We'll do that below.
          }
          Optional<Class<?>> supersWithPackagePrivateWriteReplace =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 01 03:07:54 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Jdk9Platform.kt

            } else {
              try {
                // also present on JDK8 after build 252.
                SSLSocket::class.java.getMethod("getApplicationProtocol")
                true
              } catch (nsme: NoSuchMethodException) {
                false
              }
            }
        }
    
        fun buildIfSupported(): Jdk9Platform? = if (isAvailable) Jdk9Platform() else null
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu May 29 16:52:38 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/core/lang/ClassUtil.java

                throws NoSuchConstructorRuntimeException {
            assertArgumentNotNull("clazz", clazz);
    
            try {
                return clazz.getConstructor(argTypes);
            } catch (final NoSuchMethodException e) {
                throw new NoSuchConstructorRuntimeException(clazz, argTypes, e);
            }
        }
    
        /**
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                Constructor<?> ctor = cls.getDeclaredConstructor(paramTypes);
                ctor.setAccessible(true);
                return ctor.newInstance(args);
            } catch (ClassNotFoundException | NoSuchMethodException | InstantiationException | IllegalAccessException
                    | InvocationTargetException e) {
                throw new AssertionError(e);
            }
        }
    
        // Utility to invoke a private method reflectively
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.1K bytes
    - Click Count (0)
Back to Top