Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for kotlinc (0.35 sec)

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

        // In contrast to the JVM, Kotlin native throws an Illegal argument exception in this case
        // (which seems to make more sense).
        try {
          UnsignedInts.parseUnsignedInt("0", Character.MIN_RADIX - 1);
          fail();
        } catch (NumberFormatException expected) {
        } catch (IllegalArgumentException expected) {
          // Kotlin native, see above
        }
    
        try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Joiner.java

      }
    
      private Joiner(Joiner prototype) {
        this.separator = prototype.separator;
      }
    
      /*
       * In this file, we use <? extends @Nullable Object> instead of <?> to work around a Kotlin bug
       * (see b/189937072 until we file a bug against Kotlin itself). (The two should be equivalent, so
       * we normally prefer the shorter one.)
       */
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        checkSerialization(Predicates.in(Arrays.asList(1, 2, 3, null)));
      }
    
      public void testIn_handlesNullPointerException() {
        class CollectionThatThrowsNPE<T> extends ArrayList<T> {
          @J2ktIncompatible // Kotlin doesn't support companions for inner classes
          private static final long serialVersionUID = 1L;
    
          @Override
          public boolean contains(@Nullable Object element) {
            Preconditions.checkNotNull(element);
    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)
  4. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

        assertThat(Shorts.toArray(floats)).isEqualTo(array);
        assertThat(Shorts.toArray(longs)).isEqualTo(array);
        assertThat(Shorts.toArray(doubles)).isEqualTo(array);
      }
    
      @J2ktIncompatible // b/239034072: Kotlin varargs copy parameter arrays.
      public void testAsList_isAView() {
        short[] array = {(short) 0, (short) 1};
        List<Short> list = Shorts.asList(array);
        list.set(0, (short) 2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(Floats.toArray(floats)).isEqualTo(array);
        assertThat(Floats.toArray(longs)).isEqualTo(array);
        assertThat(Floats.toArray(doubles)).isEqualTo(array);
      }
    
      @J2ktIncompatible // b/239034072: Kotlin varargs copy parameter arrays.
      public void testAsList_isAView() {
        float[] array = {(float) 0, (float) 1};
        List<Float> list = Floats.asList(array);
        list.set(0, (float) 2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterables.java

       * cases where {@link Collection#contains} might throw {@link NullPointerException} or {@link
       * ClassCastException}.
       */
      // <? extends @Nullable Object> instead of <?> because of Kotlin b/189937072, discussed in Joiner.
      public static boolean contains(
          Iterable<? extends @Nullable Object> iterable, @CheckForNull Object element) {
        if (iterable instanceof Collection) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        // In contrast to the JVM, Kotlin native throws an Illegal argument exception in this case
        // (which seems to make more sense).
        try {
          UnsignedInts.parseUnsignedInt("0", Character.MIN_RADIX - 1);
          fail();
        } catch (NumberFormatException expected) {
        } catch (IllegalArgumentException expected) {
          // Kotlin native, see above
        }
    
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/collect/ImmutableMap.java

         * platforms we target.
         *
         * 2. Kotlin's Map type has a getOrDefault method that accepts and returns a "plain V," in
         * contrast to the "V?" type that we're using. As a result, Kotlin sees a conflict between the
         * nullness annotations in ImmutableMap and those in its own Map type. In response, it considers
         * the parameter and return type both to be platform types. As a result, Kotlin permits calls
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(Doubles.toArray(floats)).isEqualTo(array);
        assertThat(Doubles.toArray(longs)).isEqualTo(array);
        assertThat(Doubles.toArray(doubles)).isEqualTo(array);
      }
    
      @J2ktIncompatible // b/239034072: Kotlin varargs copy parameter arrays.
      public void testAsList_isAView() {
        double[] array = {(double) 0, (double) 1};
        List<Double> list = Doubles.asList(array);
        list.set(0, (double) 2);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(Longs.toArray(floats)).isEqualTo(array);
        assertThat(Longs.toArray(longs)).isEqualTo(array);
        assertThat(Longs.toArray(doubles)).isEqualTo(array);
      }
    
      @J2ktIncompatible // b/239034072: Kotlin varargs copy parameter arrays.
      public void testAsList_isAView() {
        long[] array = {(long) 0, (long) 1};
        List<Long> list = Longs.asList(array);
        list.set(0, (long) 2);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
Back to top