- Sort Score
- Result 10 results
- Languages All
Results 281 - 290 of 985 for SuppressWarnings (0.07 sec)
-
guava-tests/test/com/google/common/collect/ImmutableSetTest.java
assertEquals(Lists.newArrayList("a"), new ArrayList<>(set)); } public void testCreation_oneDuplicate() { // now we'll get the varargs overload @SuppressWarnings("DistinctVarargsChecker") // deliberately testing deduplication ImmutableSet<String> set = ImmutableSet.of("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "a"); assertEquals(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestStringSortedSetGenerator.java
* While the current implementation returns `this`, that's not something we mean to guarantee. * Callers of TestContainerGenerator.order need to be prepared for implementations to return a new * collection. */ @SuppressWarnings("CanIgnoreReturnValueSuggester") @Override public List<String> order(List<String> insertionOrder) { sort(insertionOrder); return insertionOrder; } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Feb 11 19:03:19 UTC 2025 - 2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java
TestExecutor testExecutor = new TestExecutor(mock); @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored Future<?> possiblyIgnoredError = testExecutor.scheduleWithFixedDelay(DO_NOTHING, 100, 10, MINUTES); mock.assertLastMethodCalled("scheduleWithFixedDelay", 100, 10, MINUTES); @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 7.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableTable.java
} return false; } @Override boolean isPartialView() { return false; } // redeclare to help optimizers with b/310253115 @SuppressWarnings("RedundantOverride") @Override @J2ktIncompatible @GwtIncompatible Object writeReplace() { return super.writeReplace(); } } abstract V getValue(int iterationIndex);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Apr 08 13:05:15 UTC 2025 - 7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/CollectorTester.java
/** * Verifies that the specified expected result is always produced by collecting the specified * inputs, regardless of how the elements are divided. */ @SafeVarargs @CanIgnoreReturnValue @SuppressWarnings("nullness") // TODO(cpovirk): Remove after we fix whatever the bug is. public final CollectorTester<T, A, R> expectCollects(R expectedResult, T... inputs) { List<T> list = Arrays.asList(inputs);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu May 15 21:47:56 UTC 2025 - 6.6K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertTrue(ArbitraryInstances.get(Equivalence.class).equivalent(1, 1)); assertFalse(ArbitraryInstances.get(Equivalence.class).equivalent(1, 2)); } @SuppressWarnings("SelfComparison") public void testGet_comparable() { @SuppressWarnings("unchecked") // The null value can compare with any Object Comparable<Object> comparable = ArbitraryInstances.get(Comparable.class);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 21.8K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Monitor.java
* monitor.leave(); * } * } * } * } * * @author Justin T. Sampson * @author Martin Buchholz * @since 10.0 */ @J2ktIncompatible @GwtIncompatible @SuppressWarnings("GuardedBy") // TODO(b/35466881): Fix or suppress. public final class Monitor { // TODO(user): Use raw LockSupport or AbstractQueuedSynchronizer instead of ReentrantLock.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 42.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/BadWordService.java
// search } /** * Imports bad words from a CSV file. * @param reader The reader for the CSV data. */ public void importCsv(final Reader reader) { @SuppressWarnings("resource") final CsvReader csvReader = new CsvReader(reader, new CsvConfig()); try { List<String> list; csvReader.readValues(); // ignore header
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 8.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FauxveridesTest.java
@SuppressWarnings("DistinctVarargsChecker") Set<Object> original = ImmutableSet.of(new Object(), new Object()); assertThrows(ClassCastException.class, () -> ImmutableSortedSet.copyOf(original)); } public void testImmutableSortedSetCopyOfIterator() { // false positive: `new Object()` is not equal to `new Object()` @SuppressWarnings("DistinctVarargsChecker")
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 9.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java
RangeSet<Integer> expectedComplement = ImmutableRangeSet.<Integer>builder().add(Range.open(0, 2)).add(Range.atLeast(5)).build(); assertEquals(expectedComplement, rangeSet.complement()); } @SuppressWarnings("DoNotCall") public void testAddUnsupported() { RangeSet<Integer> rangeSet = ImmutableRangeSet.<Integer>builder() .add(Range.closed(5, 8)) .add(Range.closedOpen(1, 3))
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 25 16:19:30 UTC 2025 - 21.7K bytes - Viewed (0)