Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 428 for SuppressWarnings (0.05 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

      }
    
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSet<E> of(E e1, E e2, E e3) {
        return create(e1, e2, e3);
      }
    
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4) {
        return create(e1, e2, e3, e4);
      }
    
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5) {
        return create(e1, e2, e3, e4, e5);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/RenderDataUtilTest.java

            RenderDataUtil.register(data, "entity", entity);
    
            Object result = data.getDataMap().get("entity");
            assertNotNull(result);
            assertTrue(result instanceof Map);
            @SuppressWarnings("unchecked")
            Map<String, Object> resultMap = (Map<String, Object>) result;
            assertEquals("test name", resultMap.get("name"));
        }
    
        public void test_register_entityList() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

            return of(list.get(0));
          default:
            @SuppressWarnings("unchecked")
            List<E> castedList = (List<E>) list;
            return new RegularImmutableList<E>(castedList);
        }
      }
    
      /**
       * Views the array as an immutable list. The array must have only {@code E} elements.
       *
       * <p>The array must be internally created.
       */
      @SuppressWarnings("unchecked") // caller is reponsible for getting this right
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

      }
    
      @SuppressWarnings("unused") // for NullPointerTester
      private static class SubclassOverridesTheWrongMethod extends BaseClassThatFailsToThrow {
        @Keep
        public void oneArg(@Nullable CharSequence s) {}
      }
    
      public void testSubclassOverridesTheWrongMethod() {
        shouldFail(new SubclassOverridesTheWrongMethod());
      }
    
      @SuppressWarnings("unused") // for NullPointerTester
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top