Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1121 - 1130 of 1,438 for SuppressWarnings (0.25 seconds)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.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 MultimapRemoveEntryTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAbsent() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/ReflectionFreeAssertThrows.java

        try {
          result = supplier.get();
        } catch (Throwable t) {
          if (predicate.apply(t)) {
            // We are careful to set up INSTANCE_OF to match each Predicate to its target Class.
            @SuppressWarnings("unchecked")
            T caught = (T) t;
            return caught;
          }
          throw new AssertionError(
              "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 7K bytes
    - Click Count (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java

                    res.getArtifacts(),
                    "Check artifact list");
            assertEquals("2.0", getArtifact("c", res.getArtifacts()).getVersion(), "Check version");
        }
    
        @Test
        @SuppressWarnings("checkstyle:UnusedLocalVariable")
        void testResolveRangeWithManagedVersion() throws ArtifactResolutionException, InvalidVersionSpecificationException {
            ArtifactSpec a = createArtifactSpec("a", "1.0");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 43K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/base/EnumsTest.java

      // cleared.
      @J2ktIncompatible
      private WeakReference<?> doTestClassUnloading() throws Exception {
        URLClassLoader shadowLoader = new URLClassLoader(getClassPathUrls(), null);
        @SuppressWarnings("unchecked")
        Class<TestEnum> shadowTestEnum =
            (Class<TestEnum>) Class.forName(TestEnum.class.getName(), false, shadowLoader);
        assertThat(shadowTestEnum).isNotEqualTo(TestEnum.class);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 01:05:11 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  5. build-logic-commons/code-quality-rules/src/main/resources/checkstyle/checkstyle.xml

    <module name="Checker">
        <module name="SuppressionFilter">
            <property name="file" value="${config_loc}/suppressions.xml"/>
        </module>
        <!-- allows suppressing using the @SuppressWarnings("checkstyle:...") -->
        <module name="SuppressWarningsFilter"/>
        <module name="TreeWalker">
            <!-- Blocks -->
            <module name="EmptyBlock">
                <property name="option" value="statement"/>
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Dec 11 10:24:25 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            assertNull(bothNullException.getMessage());
            assertNull(bothNullException.getCause());
        }
    
        @Test
        @DisplayName("Test deprecated getRootCause method returns the same as getCause")
        @SuppressWarnings("deprecation")
        public void testGetRootCause() {
            // Test with no cause
            TransportException noCauseException = new TransportException("No cause");
            assertNull(noCauseException.getRootCause());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/TestsForQueuesInJavaUtil.java

        return QueueTestSuiteBuilder.using(
                new TestStringQueueGenerator() {
                  @Override
                  // We are testing LinkedList / testing our tests on LinkedList.
                  @SuppressWarnings("JdkObsolete")
                  public Queue<String> create(String[] elements) {
                    return new LinkedList<>(MinimalCollection.of(elements));
                  }
                })
            .named("LinkedList")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 16:28:01 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.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 CollectionToArrayTester<E> extends AbstractCollectionTester<E> {
      public void testToArray_noArgs() {
        Object[] array = collection.toArray();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/graph/GraphBuilder.java

        newBuilder.nodeOrder = nodeOrder;
        newBuilder.expectedNodeCount = expectedNodeCount;
        newBuilder.incidentEdgeOrder = incidentEdgeOrder;
        return newBuilder;
      }
    
      @SuppressWarnings("unchecked")
      private <N1 extends N> GraphBuilder<N1> cast() {
        return (GraphBuilder<N1>) this;
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/TableCollectors.java

         * Anyway, the purpose of this method is to implement a BinaryOperator combiner for a Collector,
         * so its return value will get used naturally.
         */
        @SuppressWarnings("CanIgnoreReturnValueSuggester")
        ImmutableTableCollectorState<R, C, V> combine(
            ImmutableTableCollectorState<R, C, V> other, BinaryOperator<V> merger) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 11 19:03:19 GMT 2025
    - 7.5K bytes
    - Click Count (0)
Back to Top