Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for SuppressWarnings (0.1 sec)

  1. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public void testAssignableParameterizedTypeToClass() {
        @SuppressWarnings("rawtypes") // Trying to test raw class
        TypeToken<List> tokL = new TypeToken<List>() {};
        assertTrue(tokL.isSupertypeOf(StringList.class));
        assertTrue(tokL.isSupertypeOf(StringList.class.getGenericInterfaces()[0]));
    
        @SuppressWarnings("rawtypes") // Trying to test raw class
        TypeToken<Second> tokS = new TypeToken<Second>() {};
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public void testAssignableParameterizedTypeToClass() {
        @SuppressWarnings("rawtypes") // Trying to test raw class
        TypeToken<List> tokL = new TypeToken<List>() {};
        assertTrue(tokL.isSupertypeOf(StringList.class));
        assertTrue(tokL.isSupertypeOf(StringList.class.getGenericInterfaces()[0]));
    
        @SuppressWarnings("rawtypes") // Trying to test raw class
        TypeToken<Second> tokS = new TypeToken<Second>() {};
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

      }
    
      protected Collection<Method> suppressForAbstractSequentialList() {
        return emptySet();
      }
    
      protected Collection<Method> suppressForVector() {
        return emptySet();
      }
    
      @SuppressWarnings("EmptyList") // We specifically want to test emptyList()
      public Test testsForEmptyList() {
        return ListTestSuiteBuilder.using(
                new TestStringListGenerator() {
                  @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 15:04:05 UTC 2025
    - 12K bytes
    - Viewed (0)
  4. guava/src/com/google/common/reflect/Types.java

          D genericDeclaration, String name, Type[] bounds) {
        TypeVariableImpl<D> typeVariableImpl = new TypeVariableImpl<>(genericDeclaration, name, bounds);
        @SuppressWarnings("unchecked")
        TypeVariable<D> typeVariable =
            Reflection.newProxy(
                TypeVariable.class, new TypeVariableInvocationHandler(typeVariableImpl));
        return typeVariable;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Use reflection to access concurrent collections
            Field connectionsField = SmbTransportPoolImpl.class.getDeclaredField("connections");
            connectionsField.setAccessible(true);
            @SuppressWarnings("unchecked")
            java.util.concurrent.ConcurrentLinkedQueue<SmbTransportImpl> connections =
                    (java.util.concurrent.ConcurrentLinkedQueue<SmbTransportImpl>) connectionsField.get(pool);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/TopKSelector.java

       * The largest of the lowest k elements we've seen so far relative to this comparator. If
       * bufferSize ≥ k, then we can ignore any elements greater than this value.
       */
      private @Nullable T threshold;
    
      @SuppressWarnings("unchecked") // TODO(cpovirk): Consider storing Object[] instead of T[].
      private TopKSelector(Comparator<? super T> comparator, int k) {
        this.comparator = checkNotNull(comparator, "comparator");
        this.k = k;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Types.java

          D genericDeclaration, String name, Type[] bounds) {
        TypeVariableImpl<D> typeVariableImpl = new TypeVariableImpl<>(genericDeclaration, name, bounds);
        @SuppressWarnings("unchecked")
        TypeVariable<D> typeVariable =
            Reflection.newProxy(
                TypeVariable.class, new TypeVariableInvocationHandler(typeVariableImpl));
        return typeVariable;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  8. 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;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CartesianList.java

            return axes.get(axis).get(axisIndex);
          }
    
          @Override
          boolean isPartialView() {
            return true;
          }
    
          // redeclare to help optimizers with b/310253115
          @SuppressWarnings("RedundantOverride")
          @J2ktIncompatible // serialization
          @Override
          @GwtIncompatible // serialization
          Object writeReplace() {
            return super.writeReplace();
          }
        };
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  10. 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;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
Back to top