Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for Sun (0.25 sec)

  1. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

        private static sun.misc.Unsafe getUnsafe() {
          try {
            return sun.misc.Unsafe.getUnsafe();
          } catch (SecurityException tryReflectionInstead) {
          }
          try {
            return java.security.AccessController.doPrivileged(
                new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
                  @Override
                  public sun.misc.Unsafe run() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/Striped64.java

        }
      }
    
      /**
       * Returns a sun.misc.Unsafe. Suitable for use in a 3rd party package. Replace with a simple call
       * to Unsafe.getUnsafe when integrating into a jdk.
       *
       * @return a sun.misc.Unsafe
       */
      @SuppressWarnings("removal") // b/318391980
      private static sun.misc.Unsafe getUnsafe() {
        try {
          return sun.misc.Unsafe.getUnsafe();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Throwables.java

      /**
       * Returns the JavaLangAccess class that is present in all Sun JDKs. It is not allowed in
       * AppEngine, and not present in non-Sun JDKs.
       */
      @SuppressWarnings("removal") // b/318391980
      @J2ktIncompatible
      @GwtIncompatible // java.lang.reflect
      @CheckForNull
      private static Object getJLA() {
        try {
          /*
           * We load sun.misc.* classes using reflection since Android doesn't support these classes and
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Throwables.java

      /**
       * Returns the JavaLangAccess class that is present in all Sun JDKs. It is not allowed in
       * AppEngine, and not present in non-Sun JDKs.
       */
      @SuppressWarnings("removal") // b/318391980
      @J2ktIncompatible
      @GwtIncompatible // java.lang.reflect
      @CheckForNull
      private static Object getJLA() {
        try {
          /*
           * We load sun.misc.* classes using reflection since Android doesn't support these classes and
    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)
  5. android/guava/src/com/google/common/cache/Striped64.java

        }
      }
    
      /**
       * Returns a sun.misc.Unsafe. Suitable for use in a 3rd party package. Replace with a simple call
       * to Unsafe.getUnsafe when integrating into a jdk.
       *
       * @return a sun.misc.Unsafe
       */
      @SuppressWarnings("removal") // b/318391980
      private static sun.misc.Unsafe getUnsafe() {
        try {
          return sun.misc.Unsafe.getUnsafe();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedBytes.java

                  new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
                    @Override
                    public sun.misc.Unsafe run() throws Exception {
                      Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
                      for (java.lang.reflect.Field f : k.getDeclaredFields()) {
                        f.setAccessible(true);
                        Object x = f.get(null);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

    import javax.crypto.Mac;
    import javax.crypto.SecretKey;
    import javax.crypto.spec.SecretKeySpec;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    import sun.security.jca.ProviderList;
    import sun.security.jca.Providers;
    
    /**
     * Tests for the MacHashFunction.
     *
     * @author Kurt Alfred Kluever
     */
    public class MacHashFunctionTest extends TestCase {
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

    import javax.crypto.Mac;
    import javax.crypto.SecretKey;
    import javax.crypto.spec.SecretKeySpec;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    import sun.security.jca.ProviderList;
    import sun.security.jca.Providers;
    
    /**
     * Tests for the MacHashFunction.
     *
     * @author Kurt Alfred Kluever
     */
    public class MacHashFunctionTest extends TestCase {
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

       * to remove() will incorrectly throw an IllegalStateException, instead of removing the last
       * element returned.
       *
       * <p>See <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6529795">Sun bug 6529795</a>
       */
      static class IteratorWithSunJavaBug6529795<T> implements Iterator<T> {
        Iterator<T> iterator;
        boolean nextThrewException;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          } catch (NullPointerException tolerated) {
          }
        } else {
          try {
            entrySet.retainAll(null);
            // We have to tolerate a successful return (Sun bug 4802647)
          } catch (UnsupportedOperationException | NullPointerException e) {
            // Expected.
          }
        }
        assertInvariants(map);
      }
    
      public void testEntrySetClear() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
Back to top