Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 360 for UNCHECKED (0.06 sec)

  1. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

        this(capacity, fair);
        if (capacity < c.size()) throw new IllegalArgumentException();
    
        for (E e : c) add(e);
      }
    
      @SuppressWarnings("unchecked") // please don't try this home, kids
      private static <E> E[] newEArray(int capacity) {
        return (E[]) new Object[capacity];
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

         */
        public DfsReferralDataImpl() {
            this.next = this;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.DfsReferralData#unwrap(java.lang.Class)
         */
        @SuppressWarnings("unchecked")
        @Override
        public <T extends DfsReferralData> T unwrap(final Class<T> type) {
            if (type.isAssignableFrom(this.getClass())) {
                return (T) this;
            }
            throw new ClassCastException();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbSessionImplTest.java

            verify(tree, times(1)).close();
        }
    
        @Test
        @DisplayName("unwrap: returns self for compatible type and throws for incompatible")
        @SuppressWarnings({ "rawtypes", "unchecked" })
        void testUnwrap() {
            SmbSessionImpl session = newSession();
    
            // Happy path: ask for SmbSession and SmbSessionInternal
            assertSame(session, session.unwrap(SmbSessionInternal.class));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

            this.uncPath = this.pipe.getUncPath();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbPipeHandle#unwrap(java.lang.Class)
         */
        @SuppressWarnings("unchecked")
        @Override
        public <T extends SmbPipeHandle> T unwrap(final Class<T> type) {
            if (type.isAssignableFrom(this.getClass())) {
                return (T) this;
            }
            throw new ClassCastException();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

                // A sorted spliterator with no comparator is already using natural order.
                // (We could probably find a way to avoid rawtypes here if we wanted.)
                @SuppressWarnings({"unchecked", "rawtypes"})
                Comparator<? super E> naturalOrder =
                    (Comparator<? super E>) Comparator.<Comparable>naturalOrder();
                comparator = naturalOrder;
              }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

                // A sorted spliterator with no comparator is already using natural order.
                // (We could probably find a way to avoid rawtypes here if we wanted.)
                @SuppressWarnings({"unchecked", "rawtypes"})
                Comparator<? super E> naturalOrder =
                    (Comparator<? super E>) Comparator.<Comparable>naturalOrder();
                comparator = naturalOrder;
              }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/Cache.java

       *
       * @throws ExecutionException if a checked exception was thrown while loading the value
       * @throws UncheckedExecutionException if an unchecked exception was thrown while loading the
       *     value
       * @throws ExecutionError if an error was thrown while loading the value
       * @since 11.0
       */
      @CanIgnoreReturnValue // TODO(b/27479612): consider removing this
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbSessionImpl.java

        public boolean isInUse() {
            return this.usageCount.get() > 0;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbSession#unwrap(java.lang.Class)
         */
        @SuppressWarnings("unchecked")
        @Override
        public <T extends SmbSession> T unwrap(Class<T> type) {
            if (type.isAssignableFrom(this.getClass())) {
                return (T) this;
            }
            throw new ClassCastException();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java

                props.putAll(System.getProperties());
                request.setSystemProperties(props);
            }
    
            return request;
        }
    
        @SuppressWarnings("unchecked")
        private List<ArtifactRepository> normalizeToArtifactRepositories(
                List<?> repositories, ProjectBuildingRequest request) throws ProjectBuildingException {
            /*
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/CacheBuilder.java

        // safely limiting the kinds of caches this can produce
        @SuppressWarnings("unchecked")
        CacheBuilder<K1, V1> me = (CacheBuilder<K1, V1>) this;
        me.removalListener = checkNotNull(listener);
        return me;
      }
    
      // Make a safe contravariant cast now so we don't have to do it over and over.
      @SuppressWarnings("unchecked")
      <K1 extends K, V1 extends V> RemovalListener<K1, V1> getRemovalListener() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
Back to top