- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,007 for SuppressWarnings (0.08 sec)
-
android/guava-tests/test/com/google/common/base/StringsTest.java
ArrayIndexOutOfBoundsException.class, () -> Strings.repeat("12345678", (1 << 30) + 3)); } @SuppressWarnings("InlineMeInliner") // test of method that doesn't just delegate public void testRepeat_null() { assertThrows(NullPointerException.class, () -> Strings.repeat(null, 5)); } @SuppressWarnings("UnnecessaryStringBuilder") // We want to test a non-String CharSequence public void testCommonPrefix() {
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/src/com/google/common/collect/Serialization.java
Map<K, V> map, ObjectInputStream stream, int size) throws IOException, ClassNotFoundException { for (int i = 0; i < size; i++) { @SuppressWarnings("unchecked") // reading data stored by writeMap K key = (K) stream.readObject(); @SuppressWarnings("unchecked") // reading data stored by writeMap V value = (V) stream.readObject(); map.put(key, value); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheLoaderTest.java
} }; assertEquals(0, loadCount.get()); assertEquals(0, reloadCount.get()); assertEquals(0, loadAllCount.get()); Object unused1 = baseLoader.load(new Object()); @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored Future<?> possiblyIgnoredError = baseLoader.reload(new Object(), new Object());Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.6K bytes - Viewed (0) -
guava/src/com/google/common/base/NullnessCasts.java
* nullness analysis might not understand that the field has been populated. To avoid that problem * without having to add {@code @SuppressWarnings}, the code can call this method. * * <p>Why <i>not</i> just add {@code SuppressWarnings}? The problem is that this method is * typically useful for {@code return} statements. That leaves the code with two options: EitherRegistered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 13 20:49:47 UTC 2025 - 3.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MultimapBuilder.java
// Each call generates a fresh LinkedList, which can serve as a List<V> for any V. @SuppressWarnings({"rawtypes", "unchecked"}) Supplier<List<V>> result = (Supplier) INSTANCE; return result; } @Override // We recommend against linkedListValues but need to keep it for compatibility. @SuppressWarnings("JdkObsolete") public List<?> get() { return new LinkedList<>(); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 18K bytes - Viewed (0) -
guava/src/com/google/common/collect/MultimapBuilder.java
// Each call generates a fresh LinkedList, which can serve as a List<V> for any V. @SuppressWarnings({"rawtypes", "unchecked"}) Supplier<List<V>> result = (Supplier) INSTANCE; return result; } @Override // We recommend against linkedListValues but need to keep it for compatibility. @SuppressWarnings("JdkObsolete") public List<?> get() { return new LinkedList<>(); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 18K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableList.java
* "https://github.com/google/guava/wiki/ImmutableCollectionsExplained">immutable collections</a>. * * @see ImmutableMap * @see ImmutableSet * @author Kevin Bourrillion * @since 2.0 */ @GwtCompatible @SuppressWarnings("serial") // we're overriding default serialization public abstract class ImmutableList<E> extends ImmutableCollection<E> implements List<E>, RandomAccess { /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 27.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java
// Other tests will verify what real, warning-free usage looks like // but here we have to do some serious fudging @Override @SuppressWarnings({"unchecked", "rawtypes"}) public Map<TypeToken, Object> create(Object... elements) { MutableTypeToInstanceMap<Object> map = new MutableTypeToInstanceMap<>();Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Cut.java
* below all values or above all values. With this object defined in this way, an interval can * always be represented by a pair of {@code Cut} instances. * * @author Kevin Bourrillion */ @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989 @GwtCompatible abstract class Cut<C extends Comparable> implements Comparable<Cut<C>>, Serializable { final C endpoint; Cut(C endpoint) {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 12.4K bytes - Viewed (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
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 8.7K bytes - Viewed (0)