- Sort Score
- Num 10 results
- Language All
Results 241 - 250 of 1,438 for SuppressWarnings (0.83 seconds)
-
android/guava/src/com/google/common/math/IntMath.java
* Integer.bitCount(Integer.MIN_VALUE) == 1}, but {@link Integer#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(int x) { return x > 0 & (x & (x - 1)) == 0; } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 26.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
cleanable.clean(); } } @SuppressWarnings("Java8ApiChecker") private ServerSocket makeMyServerExampleWithCleaner(AtomicBoolean cleanerRan) throws IOException { MyServerExampleWithCleaner myServer = new MyServerExampleWithCleaner(cleanerRan); assertThat(myServer.serverSocket.isClosed()).isFalse(); return myServer.serverSocket; } @SuppressWarnings("Java8ApiChecker") @Test
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Feb 27 21:20:19 GMT 2026 - 8.6K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/RepositorySystem.java
String DEFAULT_LOCAL_REPO_ID = MavenRepositorySystem.DEFAULT_LOCAL_REPO_ID; @SuppressWarnings("checkstyle:constantname") String userHome = System.getProperty("user.home"); @SuppressWarnings("checkstyle:constantname") File userMavenConfigurationHome = new File(userHome, ".m2"); @SuppressWarnings("checkstyle:constantname")Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 7.7K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.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") @NullMarked public class SetMultimapAsMapTester<K extends @Nullable Object, V extends @Nullable Object> extends AbstractMultimapTester<K, V, SetMultimap<K, V>> {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java
// - Some providers may choose to also include alias names. // - For example, the "SHA-1" algorithm might be referred to as "SHA1". // - The algorithm name is not case-sensitive. @SuppressWarnings("deprecation") // We still need to test our deprecated APIs. private static final ImmutableMap<String, HashFunction> ALGORITHMS = new ImmutableMap.Builder<String, HashFunction>() .put("MD5", md5())
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 4.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java
* themselves null), so we can treat it as a plain `Object[]`. */ @SuppressWarnings("nullness") Object[] result = standardToArray(); return result; } @Override @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations public <T extends @Nullable Object> T[] toArray(T[] array) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 22:10:29 GMT 2025 - 6.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSortedSet.java
if (hasSameComparator && (elements instanceof ImmutableSortedSet)) { @SuppressWarnings("unchecked") ImmutableSortedSet<E> original = (ImmutableSortedSet<E>) elements; if (!original.isPartialView()) { return original; } } @SuppressWarnings("unchecked") // elements only contains E's; it's safe. E[] array = (E[]) Iterables.toArray(elements);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 36.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java
import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Unit test for {@link AbstractMultiset}. * * @author Kevin Bourrillion * @author Louis Wasserman */ @SuppressWarnings("serial") // No serialization is used in this test @GwtCompatible @NullMarked public class SimpleAbstractMultisetTest extends TestCase { @J2ktIncompatible @GwtIncompatible // suiteCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.6K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/FakeTickerTest.java
/** * Unit test for {@link FakeTicker}. * * @author Jige Yu */ @GwtCompatible // We also want to test the TimeUnit overload (especially under GWT, where it's the only option). @SuppressWarnings("SetAutoIncrementStep_Nanos") @NullUnmarked public class FakeTickerTest extends TestCase { @GwtIncompatible // NullPointerTester public void testNullPointerExceptions() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 6.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/JdkBackedImmutableMap.java
} if (duplicates == null) { duplicates = new HashMap<>(); } duplicates.put(key, value); dupCount++; } } if (duplicates != null) { @SuppressWarnings({"rawtypes", "unchecked"}) Entry<K, V>[] newEntryArray = new Entry[n - dupCount]; for (int inI = 0, outI = 0; inI < n; inI++) { Entry<K, V> entry = requireNonNull(entryArray[inI]);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 4.7K bytes - Click Count (0)