Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for compilation (0.21 sec)

  1. android/guava-tests/test/com/google/common/base/OptionalTest.java

       * mentioned in the method Javadoc does in fact compile.
       */
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeError1() {
        Optional<Integer> optionalInt = getSomeOptionalInt();
        // Number value = optionalInt.or(0.5); // error
      }
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeError2() {
        FluentIterable<? extends Number> numbers = getSomeNumbers();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/OptionalTest.java

       * mentioned in the method Javadoc does in fact compile.
       */
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeError1() {
        Optional<Integer> optionalInt = getSomeOptionalInt();
        // Number value = optionalInt.or(0.5); // error
      }
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeError2() {
        FluentIterable<? extends Number> numbers = getSomeNumbers();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

        assertThat(Comparators.min(2, 1, reverse)).isEqualTo(2);
        assertThat(Comparators.max(1, 2, reverse)).isEqualTo(1);
        assertThat(Comparators.max(2, 1, reverse)).isEqualTo(1);
      }
    
      /**
       * Fails compilation if the signature of min and max is changed to take {@code Comparator<T>}
       * instead of {@code Comparator<? super T>}.
       */
      public void testMinMaxWithSupertypeComparator() {
        Comparator<Number> numberComparator =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        nums.add(3);
        Predicate<Integer> isThree = Predicates.in(nums);
        assertFalse(isThree.apply(3));
      }
    
      /*
       * Tests that compilation will work when applying explicit types.
       */
      @SuppressWarnings("unused") // compilation test
      public void testIn_compilesWithExplicitSupertype() {
        Collection<Number> nums = ImmutableSet.of();
        Predicate<Number> p1 = Predicates.in(nums);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ComparatorsTest.java

        assertThat(Comparators.min(2, 1, reverse)).isEqualTo(2);
        assertThat(Comparators.max(1, 2, reverse)).isEqualTo(1);
        assertThat(Comparators.max(2, 1, reverse)).isEqualTo(1);
      }
    
      /**
       * Fails compilation if the signature of min and max is changed to take {@code Comparator<T>}
       * instead of {@code Comparator<? super T>}.
       */
      public void testMinMaxWithSupertypeComparator() {
        Comparator<Number> numberComparator =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Throwables.java

      @CheckForNull
      private static Object getJLA() {
        try {
          /*
           * We load sun.misc.* classes using reflection since Android doesn't support these classes and
           * 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");
    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)
  7. android/guava/src/com/google/common/base/Throwables.java

      @CheckForNull
      private static Object getJLA() {
        try {
          /*
           * We load sun.misc.* classes using reflection since Android doesn't support these classes and
           * 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");
    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)
  8. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          }
          statsCounter.recordEviction();
          return removal;
        }
      }
    
      /**
       * Any updates to LocalCache.Strength used in CacheBuilder need to be matched in this class for
       * compilation purposes.
       */
      enum Strength {
        /*
         * TODO(kevinb): If we strongly reference the value and aren't loading, we needn't wrap the
         * value. This could save ~8 bytes per entry.
         */
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  9. android/pom.xml

                         be passed as part of the same <arg> as -Xplugin:ErrorProne,
                         and I gave up trying to figure out how to do that for test
                         compilation only. -->
                    <arg>-Xplugin:ErrorProne -Xep:NullArgumentForNonNullParameter:OFF -Xep:Java8ApiChecker:ERROR</arg>
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 12 20:26:18 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/PredicatesTest.java

        nums.add(3);
        Predicate<Integer> isThree = Predicates.in(nums);
        assertFalse(isThree.apply(3));
      }
    
      /*
       * Tests that compilation will work when applying explicit types.
       */
      @SuppressWarnings("unused") // compilation test
      public void testIn_compilesWithExplicitSupertype() {
        Collection<Number> nums = ImmutableSet.of();
        Predicate<Number> p1 = Predicates.in(nums);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
Back to top