- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 25 for J2KT (0.02 seconds)
-
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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 6.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/CollectSpliterators.java
* Spliterator.OfPrimitive (and override default implementations from Spliterator.OfPrimitive or * a subtype like Spliterator.OfInt). */ @Override public /*non-final for J2KT*/ boolean tryAdvance(Consumer<? super OutElementT> action) { while (true) { if (prefix != null && prefix.tryAdvance(action)) { if (estimatedSize != Long.MAX_VALUE) { estimatedSize--;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 19.9K bytes - Click Count (0) -
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(); assertThat(stopwatch.toString()).isEqualTo("0.000 ns"); ticker.advance(1);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 6.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
checkUnbounded(queue); assertThat(queue.comparator()).isEqualTo(SOME_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 Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 36.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/ConverterTest.java
assertEquals((Integer) 5, converter.convert("5")); assertThat(converter.reverse().convert(5)).isEqualTo("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); assertThat(nullsArePassed.convert("foo")).isEqualTo("forward");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 8.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
checkUnbounded(queue); assertThat(queue.comparator()).isEqualTo(SOME_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 Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 36.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/HashBiMap.java
* constructor calls (as does readObject()). */ @SuppressWarnings("nullness:initialization.field.uninitialized") // For J2KT (see above) private transient @Nullable Node<K, V>[] hashTableKToV; @SuppressWarnings("nullness:initialization.field.uninitialized") // For J2KT (see above) private transient @Nullable Node<K, V>[] hashTableVToK; @Weak private transient @Nullable Node<K, V> firstInKeyInsertionOrder;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 25.7K bytes - Click Count (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"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 11.4K bytes - Click Count (0) -
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"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 11.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/JoinerTest.java
joiner.appendTo(sb1FromIterator, parts.iterator()); assertThat(sb1FromIterator.toString()).isEqualTo("x" + expected); // The use of iterator() works around J2KT b/381065164. @Nullable Integer[] partsArray = newArrayList(parts.iterator()).toArray(new @Nullable Integer[0]); assertThat(joiner.join(partsArray)).isEqualTo(expected);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 13.2K bytes - Click Count (0)