- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 330 for SuppressWarnings (0.12 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java
public Set<Object> create(Object... elements) { return ImmutableSet.copyOf(elements); } } public static class DegeneratedImmutableSetGenerator extends TestStringSetGenerator { @SuppressWarnings("DistinctVarargsChecker") // deliberately testing deduplication @Override protected Set<String> create(String[] elements) { return ImmutableSet.of(elements[0], elements[0]); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 15.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java
final ResourceNameFilter filter, final int searchAttributes) throws CIFSException { super(th, parent, wildcard, filter, searchAttributes); } @SuppressWarnings("resource") @Override protected final FileEntry open() throws CIFSException { final SmbResourceLocator loc = this.getParent().getLocator(); final String unc = loc.getUNCPath();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
/** * Unit test for {@link Throwables}. * * @author Kevin Bourrillion */ @GwtCompatible @SuppressWarnings("deprecation") // tests of numerous deprecated methods @NullUnmarked public class ThrowablesTest extends TestCase { // We're testing that the method is in fact equivalent to throwing the exception directly. @SuppressWarnings("ThrowIfUncheckedKnownUnchecked") public void testThrowIfUnchecked_unchecked() { assertThrows(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/Platform.java
* * @author Chris Povirk */ @GwtCompatible @NullMarked final class Platform { /** Serializes and deserializes the specified object. */ @SuppressWarnings("unchecked") static <T> T reserialize(T object) { checkNotNull(object); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); try { ObjectOutputStream out = new ObjectOutputStream(bytes);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 1.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableList.java
import org.jspecify.annotations.Nullable; /** * Implementation of {@link ImmutableList} backed by a simple array. * * @author Kevin Bourrillion */ @GwtCompatible @SuppressWarnings("serial") // uses writeReplace(), not default serialization final class RegularImmutableList<E> extends ImmutableList<E> { static final ImmutableList<Object> EMPTY = new RegularImmutableList<>(new Object[0], 0);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.7K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
String a, int b, // oneConstantOnly doesn't matter since it's not nullable and can be only 1 value. @SuppressWarnings("unused") OneConstantEnum oneConstantOnly, // noConstant doesn't matter since it can only be null @SuppressWarnings("unused") @Nullable NoConstantEnum noConstant) { return new GoodEquals(a, b); } // instance method ignored
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 36.2K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/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: Either
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 13 20:49:47 UTC 2025 - 4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableBiMap.java
import com.google.common.annotations.VisibleForTesting; import org.jspecify.annotations.Nullable; /** * Bimap with zero or more mappings. * * @author Louis Wasserman */ @GwtCompatible @SuppressWarnings("serial") // uses writeReplace(), not default serialization final class RegularImmutableBiMap<K, V> extends ImmutableBiMap<K, V> { static final RegularImmutableBiMap<Object, Object> EMPTY = new RegularImmutableBiMap<>();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
/** * Unit test for {@link Throwables}. * * @author Kevin Bourrillion */ @GwtCompatible @SuppressWarnings("deprecation") // tests of numerous deprecated methods @NullUnmarked public class ThrowablesTest extends TestCase { // We're testing that the method is in fact equivalent to throwing the exception directly. @SuppressWarnings("ThrowIfUncheckedKnownUnchecked") public void testThrowIfUnchecked_unchecked() { assertThrows(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java
// These come from Entry<K, Collection<V>>> objects somewhere. @SuppressWarnings("unchecked") K key = (K) entry.getKey(); keySet.add(key); for (Object v : (Collection<?>) entry.getValue()) { // These come from Entry<K, Collection<V>>> objects somewhere. @SuppressWarnings("unchecked") V value = (V) v; builder.add(mapEntry(key, value)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 26.8K bytes - Viewed (0)