- Sort Score
- Num 10 results
- Language All
Results 691 - 700 of 1,438 for SuppressWarnings (0.11 seconds)
-
guava-testlib/src/com/google/common/collect/testing/google/BiMapClearTester.java
*/ @GwtCompatible @Ignore("test runners must not instantiate and run this directly, only via suites we build") // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. @SuppressWarnings("JUnit4ClassUsedInJUnit3") public class BiMapClearTester<K, V> extends AbstractBiMapTester<K, V> { @MapFeature.Require(SUPPORTS_REMOVE) public void testClearClearsInverse() { BiMap<V, K> inv = getMap().inverse();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 2.6K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t05/ProjectInheritanceTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; /** * A test which demonstrates maven's dependency management * */ @Deprecated @SuppressWarnings("checkstyle:UnusedLocalVariable") class ProjectInheritanceTest extends AbstractProjectInheritanceTestCase { // ---------------------------------------------------------------------- // // p1 inherits from p0
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 2.9K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java
@NullUnmarked public class StringsRepeatBenchmark { @Param({"1", "5", "25", "125"}) int count; @Param({"1", "10"}) int length; private String originalString; @BeforeExperiment @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8 void setUp() { originalString = Strings.repeat("x", length); } @Benchmark void oldRepeat(long reps) { for (int i = 0; i < reps; i++) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 3.4K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/AbstractSortedMultiset.java
@GwtCompatible abstract class AbstractSortedMultiset<E extends @Nullable Object> extends AbstractMultiset<E> implements SortedMultiset<E> { private final Comparator<? super E> comparator; // needed for serialization @SuppressWarnings("unchecked") AbstractSortedMultiset() { this((Comparator) Ordering.natural()); } AbstractSortedMultiset(Comparator<? super E> comparator) { this.comparator = checkNotNull(comparator); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 4.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ForwardingCollectionTest.java
.withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_VALUES) .createTestSuite()); return suite; } @SuppressWarnings({"rawtypes", "unchecked"}) public void testForwarding() { new ForwardingWrapperTester() .testForwarding( Collection.class, new Function<Collection, Collection>() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 20:34:52 GMT 2025 - 4.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ForwardingQueueTest.java
CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_VALUES, CollectionFeature.GENERAL_PURPOSE) .createTestSuite()); return suite; } @SuppressWarnings({"rawtypes", "unchecked"}) public void testForwarding() { new ForwardingWrapperTester() .testForwarding( Queue.class, new Function<Queue, Queue>() { @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 4.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Synchronized.java
implements Collection<E> { private SynchronizedCollection(Collection<E> delegate, @Nullable Object mutex) { super(delegate, mutex); } @SuppressWarnings("unchecked") @Override Collection<E> delegate() { return (Collection<E>) super.delegate(); } @Override public boolean add(E e) { synchronized (mutex) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Aug 08 15:11:10 GMT 2025 - 53K bytes - Click Count (0) -
android/guava/src/com/google/common/math/LongMath.java
* Long.bitCount(Long.MIN_VALUE) == 1}, but {@link Long#MIN_VALUE} is not a power of two. */ // Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, || @SuppressWarnings("ShortCircuitBoolean") public static boolean isPowerOfTwo(long x) { return x > 0 & (x & (x - 1)) == 0; } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 09 23:01:02 GMT 2026 - 46.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java
return () -> { throw exception; }; } private static Runnable runnableThrowing(RuntimeException e) { return () -> { throw e; }; } @SuppressWarnings("serial") private static class SampleCheckedException extends Exception {}
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4.1K bytes - Click Count (0) -
src/main/java/org/codelibs/core/beans/impl/ParameterizedClassDescImpl.java
this.rawClass = rawClass; this.arguments = arguments; } @Override public boolean isParameterizedClass() { return arguments != null; } @SuppressWarnings("unchecked") @Override public <T> Class<T> getRawClass() { return (Class<T>) rawClass; } /** * Sets the raw class. * * @param rawClassCreated: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2.8K bytes - Click Count (0)