- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for J2KT (0.02 seconds)
-
android/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.) *
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 6.2K bytes - Click Count (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() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 36.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
// collection like ConcurrentLinkedQueue, so that e.g. concurrent // iteration would work, but that would not be GWT-compatible. // We are not "just" inheriting from ArrayList here as this doesn't work for J2kt. return new AbstractList<T>() { final ArrayList<T> data = new ArrayList<>(); @Override public int size() { return max(0, data.size() + delta); } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 10 23:13:45 GMT 2025 - 17.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
// Changes after are not list.set(0, 5); assertEquals(ImmutableList.of(3, 4), first); } @J2ktIncompatible // Arrays.asList(...).subList() doesn't implement RandomAccess in J2KT. @GwtIncompatible // Arrays.asList(...).subList doesn't implement RandomAccess in GWT public void testPartitionRandomAccessInput() { Iterable<Integer> source = asList(1, 2, 3);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 45.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
* TODO: cpovirk - Is this an issue anywhere anymore? It looks to have been fixed for Java 8 * (https://bugs.openjdk.org/browse/JDK-7121314) and before Lollipop * (https://r.android.com/47508). We *would* need to worry for J2KT, whose own concurrency support * is evolving (b/381065164, b/458160722), but this class is @J2ktIncompatible. * * 2. The superclass toArray() method declares the more general return type `@Nullable Object[]`,
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Dec 08 22:42:14 GMT 2025 - 22.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/Helpers.java
// collection like ConcurrentLinkedQueue, so that e.g. concurrent // iteration would work, but that would not be GWT-compatible. // We are not "just" inheriting from ArrayList here as this doesn't work for J2kt. return new AbstractList<T>() { final ArrayList<T> data = new ArrayList<>(); @Override public int size() { return max(0, data.size() + delta); } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 10 23:13:45 GMT 2025 - 17.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
// Changes after are not list.set(0, 4); assertEquals(ImmutableList.of(3), first); } @J2ktIncompatible // Arrays.asList(...).subList() doesn't implement RandomAccess in J2KT. @GwtIncompatible // Arrays.asList(...).subList() doesn't implement RandomAccess in GWT public void testPartitionRandomAccess() { Iterator<Integer> source = asList(1, 2, 3).iterator();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 56.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MultimapsTest.java
assertEquals("{a=[a1, a4, a4], b=[b6]}", transformed.toString()); } @J2ktIncompatible // Synchronized public void testSynchronizedMultimapSampleCodeCompilation() { // Extra indirection for J2KT, to avoid error: not enough information to infer type variable K this.<@Nullable Object, @Nullable Object>genericTestSynchronizedMultimapSampleCodeCompilation(); } @J2ktIncompatible // Synchronized
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 38.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Maps.java
* be used with collections that may contain null. This collection never contains nulls, so we * could return `Object[]`. But this class is private and J2KT cannot change return types in * overrides, so we declare `@Nullable Object[]` as the return type. */ return standardToArray(); } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 157.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/Maps.java
* be used with collections that may contain null. This collection never contains nulls, so we * could return `Object[]`. But this class is private and J2KT cannot change return types in * overrides, so we declare `@Nullable Object[]` as the return type. */ return standardToArray(); } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 163.5K bytes - Click Count (0)