- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for J2KT (1.69 sec)
-
android/guava/src/com/google/common/annotations/J2ktIncompatible.java
import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * The presence of this annotation on an API indicates that the method may not be used with * J2kt. * * @since 32.0.0 */ @Retention(RetentionPolicy.CLASS) @Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD}) @GwtCompatible
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri May 26 22:04:00 UTC 2023 - 1.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/StopwatchTest.java
ticker.advance(999999); assertEquals(0, stopwatch.elapsed(MILLISECONDS)); ticker.advance(1); assertEquals(1, stopwatch.elapsed(MILLISECONDS)); } @J2ktIncompatible // TODO(b/259213718): Switch J2kt to String.format("%.4g") once that's supported public void testToString() { stopwatch.start(); assertEquals("0.000 ns", stopwatch.toString()); ticker.advance(1);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MultimapBuilderTest.java
rawtypeToWildcard(MultimapBuilder.treeKeys()).arrayListValues().<String, Integer>build(); assertTrue(multimap.keySet() instanceof SortedSet); assertTrue(multimap.asMap() instanceof SortedMap); } // J2kt cannot translate the Comparable rawtype in a usable way (it becomes Comparable<Object> // but types are typically only Comparable to themselves). @SuppressWarnings({"rawtypes", "unchecked"})
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/EquivalenceTest.java
/* * We use large numbers to avoid the integer cache. Normally, we'd accomplish that merely by using * `new Integer` (as we do) instead of `Integer.valueOf`. However, under J2KT, `new Integer` * gets translated back to `Integer.valueOf` because that is the only thing J2KT can support. And * anyway, it's nice to avoid `Integer.valueOf` because the Android toolchain optimizes multiple
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EquivalenceTest.java
/* * We use large numbers to avoid the integer cache. Normally, we'd accomplish that merely by using * `new Integer` (as we do) instead of `Integer.valueOf`. However, under J2KT, `new Integer` * gets translated back to `Integer.valueOf` because that is the only thing J2KT can support. And * anyway, it's nice to avoid `Integer.valueOf` because the Android toolchain optimizes multiple
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java
* * @author Kevin Bourrillion * @since 2.0 */ @Immutable(containerOf = "B") @GwtIncompatible // TODO(b/278589132): Remove the redundant "@NonNull" on B once it's no longer required by J2KT. public final class ImmutableClassToInstanceMap<B> extends ForwardingMap<Class<? extends @NonNull B>, B> implements ClassToInstanceMap<B>, Serializable {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ConverterTest.java
assertEquals((Integer) 5, converter.convert("5")); assertEquals("5", converter.reverse().convert(5)); } // Null-passthrough violates our nullness annotations, so we don't support it under J2KT. @J2ktIncompatible public void testNullIsPassedThrough() { Converter<String, String> nullsArePassed = sillyConverter(false); assertEquals("forward", nullsArePassed.convert("foo"));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/EnumBiMap.java
/* * J2CL's EnumMap does not need the Class instance, so we can use Object.class instead. (Or we * could use null, but that messes with our nullness checking, including under J2KT. We could * probably work around it by changing how we annotate the J2CL EnumMap, but that's probably more * trouble than just using Object.class.) *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/StringsTest.java
@GwtIncompatible // GWT reflection includes less data public void testLenientFormat_badArgumentToString() { assertThat(Strings.lenientFormat("boiler %s plate", new ThrowsOnToString())) .matches( // J2kt nested class name does not use "$" "boiler <com\\.google\\.common\\.base\\.StringsTest[.$]ThrowsOnToString@[0-9a-f]+ " + "threw java\\.lang\\.UnsupportedOperationException> plate"); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 27 17:53:41 UTC 2025 - 10.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
checkUnbounded(queue); assertSame(SOME_COMPARATOR, queue.comparator()); } // We use the rawtypeToWildcard "cast" to make the test work with J2KT in other tests. Leaving one // test without that cast to verify that using the raw Comparable works outside J2KT. @J2ktIncompatible // J2KT's translation of raw Comparable is not a supertype of Int translation public void testCreation_expectedSize() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36K bytes - Viewed (0)