Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 142 for forName (0.23 sec)

  1. android/guava/src/com/google/common/base/Throwables.java

           * would result in compilation failure if we directly refer to these classes.
           */
          Class<?> sharedSecrets = Class.forName(SHARED_SECRETS_CLASSNAME, false, null);
          Method langAccess = sharedSecrets.getMethod("getJavaLangAccess");
          return langAccess.invoke(null);
        } catch (ThreadDeath death) {
          throw death;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/MediaType.kt

       */
      @JvmOverloads
      fun charset(defaultValue: Charset? = null): Charset? {
        val charset = parameter("charset") ?: return defaultValue
        return try {
          Charset.forName(charset)
        } catch (_: IllegalArgumentException) {
          defaultValue // This charset is invalid or unsupported. Give up.
        }
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/EnumsTest.java

        URLClassLoader shadowLoader = new URLClassLoader(getClassPathUrls(), null);
        @SuppressWarnings("unchecked")
        Class<TestEnum> shadowTestEnum =
            (Class<TestEnum>) Class.forName(TestEnum.class.getName(), false, shadowLoader);
        assertNotSame(shadowTestEnum, TestEnum.class);
        // We can't write Set<TestEnum> because that is a Set of the TestEnum from the original
        // ClassLoader.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/EnumsTest.java

        URLClassLoader shadowLoader = new URLClassLoader(getClassPathUrls(), null);
        @SuppressWarnings("unchecked")
        Class<TestEnum> shadowTestEnum =
            (Class<TestEnum>) Class.forName(TestEnum.class.getName(), false, shadowLoader);
        assertNotSame(shadowTestEnum, TestEnum.class);
        // We can't write Set<TestEnum> because that is a Set of the TestEnum from the original
        // ClassLoader.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/Funnels.java

          SerializedForm(Charset charset) {
            this.charsetCanonicalName = charset.name();
          }
    
          private Object readResolve() {
            return stringFunnel(Charset.forName(charsetCanonicalName));
          }
    
          private static final long serialVersionUID = 0;
        }
      }
    
      /**
       * Returns a funnel for integers.
       *
       * @since 13.0
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

        }
    
      private fun loomThreadFactory(): ThreadFactory {
        val ofVirtual = Thread::class.java.getMethod("ofVirtual").invoke(null)
    
        return Class.forName("java.lang.Thread\$Builder")
          .getMethod("factory")
          .invoke(ofVirtual) as ThreadFactory
      }
    
      private fun isLoom(): Boolean {
        return getPlatformSystemProperty() == LOOM_PROPERTY
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

          // platforms in order to support Robolectric, which mixes classes from both Android and the
          // Oracle JDK. Note that we don't support HTTP/2 or other nice features on Robolectric.
          val sslContextClass = Class.forName("sun.security.ssl.SSLContextImpl")
          val context = readFieldOrNull(sslSocketFactory, sslContextClass, "context") ?: return null
          readFieldOrNull(context, X509TrustManager::class.java, "trustManager")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

          return false;
        }
        try {
          Class.forName("com.google.appengine.api.utils.SystemProperty");
        } catch (ClassNotFoundException e) {
          return false;
        }
        try {
          // If the current environment is null, we're not inside AppEngine.
          return Class.forName("com.google.apphosting.api.ApiProxy")
                  .getMethod("getCurrentEnvironment")
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

        URLClassLoader shadowLoader = new URLClassLoader(parseJavaClassPath(), null);
        @SuppressWarnings("unchecked")
        Class<WillBeUnloadedException> shadowClass =
            (Class<WillBeUnloadedException>)
                Class.forName(WillBeUnloadedException.class.getName(), false, shadowLoader);
        assertNotSame(shadowClass, WillBeUnloadedException.class);
        getChecked(immediateFuture("foo"), shadowClass);
        return new WeakReference<>(shadowLoader);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

        URLClassLoader shadowLoader = new URLClassLoader(parseJavaClassPath(), null);
        @SuppressWarnings("unchecked")
        Class<WillBeUnloadedException> shadowClass =
            (Class<WillBeUnloadedException>)
                Class.forName(WillBeUnloadedException.class.getName(), false, shadowLoader);
        assertNotSame(shadowClass, WillBeUnloadedException.class);
        getChecked(immediateFuture("foo"), shadowClass);
        return new WeakReference<>(shadowLoader);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
Back to top