Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 158 for jdk8 (0.81 sec)

  1. android/guava-tests/test/com/google/common/primitives/CharsTest.java

      private static final char GREATEST = Character.MAX_VALUE;
    
      private static final char[] VALUES = {LEAST, 'a', '\u00e0', '\udcaa', GREATEST};
    
      // We need to test that our method behaves like the JDK method.
      @SuppressWarnings("InlineMeInliner")
      public void testHashCode() {
        for (char value : VALUES) {
          assertThat(Chars.hashCode(value)).isEqualTo(Character.hashCode(value));
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          assertThat(cache.asMap().values()).contains(value2);
          assertEquals(ImmutableSet.of(immutableEntry(key2, value2)), cache.asMap().entrySet());
        }
      }
    
      // fails in Maven with 64-bit JDK: https://github.com/google/guava/issues/1568
    
      // A simple type whose .toString() will return the same value each time, but without maintaining
      // a strong reference to that value.
      static class Key {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

        Throwable thrownReflectionFailure = null;
        try {
          helper = new SafeAtomicHelper();
        } catch (Throwable reflectionFailure) { // sneaky checked exception
          // Some Android 5.0.x Samsung devices have bugs in JDK reflection APIs that cause
          // getDeclaredField to throw a NoSuchFieldException when the field is definitely there.
          // For these users fallback to a suboptimal implementation, based on synchronized. This will
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSet.java

        return new SingletonImmutableSet<>(e1);
      }
    
      /*
       * TODO: b/315526394 - Skip the Builder entirely for the of(...) methods, since we don't need to
       * worry that we might trigger the fallback to the JDK-backed implementation? (The varargs one
       * _could_, so we could keep it as it is. Or we could convince ourselves that hash flooding is
       * unlikely in practice there, too.)
       */
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  5. okhttp/build.gradle.kts

      kotlin("plugin.serialization")
      id("org.jetbrains.dokka")
      id("com.vanniktech.maven.publish.base")
      id("binary-compatibility-validator")
    }
    
    val platform = System.getProperty("okhttp.platform", "jdk9")
    val testJavaVersion = System.getProperty("test.java.version", "21").toInt()
    
    val copyKotlinTemplates = tasks.register<Copy>("copyKotlinTemplates") {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 03:59:03 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt

          try {
            // 1.8, 9, 10, 11, 12 etc
            val version = jvmVersion.toInt()
            if (version >= 9) return null
          } catch (_: NumberFormatException) {
            // expected on >= JDK 9
          }
    
          // Find Jetty's ALPN extension for OpenJDK.
          try {
            val alpnClassName = "org.eclipse.jetty.alpn.ALPN"
            val alpnClass = Class.forName(alpnClassName, true, null)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/EquivalenceTest.java

      @GwtIncompatible // NullPointerTester
      public void testNulls() throws NoSuchMethodException {
        NullPointerTester tester = new NullPointerTester();
        // Necessary until JDK15:
        // https://bugs.openjdk.org/browse/JDK-8202469
        tester.ignore(Equivalence.class.getMethod("wrap", Object.class));
    
        tester.testAllPublicStaticMethods(Equivalence.class);
        tester.testAllPublicInstanceMethods(Equivalence.equals());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/EquivalenceTest.java

      @GwtIncompatible // NullPointerTester
      public void testNulls() throws NoSuchMethodException {
        NullPointerTester tester = new NullPointerTester();
        // Necessary until JDK15:
        // https://bugs.openjdk.org/browse/JDK-8202469
        tester.ignore(Equivalence.class.getMethod("wrap", Object.class));
    
        tester.testAllPublicStaticMethods(Equivalence.class);
        tester.testAllPublicInstanceMethods(Equivalence.equals());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

            Long.MIN_VALUE,
            Long.MAX_VALUE
          };
    
      private static final double[] VALUES = Doubles.concat(NUMBERS, new double[] {NaN});
    
      // We need to test that our method behaves like the JDK method.
      @SuppressWarnings("InlineMeInliner")
      public void testHashCode() {
        for (double value : VALUES) {
          assertThat(Doubles.hashCode(value)).isEqualTo(Double.hashCode(value));
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

        // TODO(lukes): assert that the logs are full of errors
      }
    
      /**
       * Runs the corresponding {@link FuturesTest} test method in a new classloader that disallows
       * certain core JDK classes.
       */
      private void runTestMethod(ClassLoader classLoader) throws Exception {
        ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top