Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 422 for UNCHECKED (0.05 seconds)

  1. android/guava/src/com/google/common/collect/MultimapBuilder.java

       * @since 16.0
       */
      public static <K0 extends Enum<K0>> MultimapBuilderWithKeys<K0> enumKeys(Class<K0> keyClass) {
        checkNotNull(keyClass);
        return new MultimapBuilderWithKeys<K0>() {
          @SuppressWarnings("unchecked")
          @Override
          <K extends K0, V extends @Nullable Object> Map<K, Collection<V>> createMap() {
            // K must actually be K0, since enums are effectively final
            // (their subclasses are inaccessible)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 18K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        EntryComparator(@Nullable Comparator<? super K> keyComparator) {
          this.keyComparator = keyComparator;
        }
    
        @Override
        @SuppressWarnings("unchecked") // no less safe than putting it in the map!
        public int compare(Entry<K, V> a, Entry<K, V> b) {
          return (keyComparator == null)
              ? ((Comparable) a.getKey()).compareTo(b.getKey())
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 17.2K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/lang/MethodUtil.java

         * @throws InvocationTargetRuntimeException
         *             If the underlying method throws an exception
         * @see Method#invoke(Object, Object[])
         */
        @SuppressWarnings("unchecked")
        public static <T> T invoke(final Method method, final Object target, final Object... args)
                throws InvocationTargetRuntimeException, IllegalAccessRuntimeException {
            assertArgumentNotNull("method", method);
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        JAPAN,
        SWITZERLAND,
        UK
      }
    
      @AndroidIncompatible // test-suite builders
      public static final class EnumBiMapGenerator implements TestBiMapGenerator<Country, Currency> {
        @SuppressWarnings("unchecked")
        @Override
        public BiMap<Country, Currency> create(Object... entries) {
          BiMap<Country, Currency> result = EnumBiMap.create(Country.class, Currency.class);
          for (Object object : entries) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        }
      }
    
      /**
       * Returns the empty sorted map.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      @SuppressWarnings("unchecked")
      // unsafe, comparator() returns a comparator on the specified type
      // TODO(kevinb): evaluate whether or not of().comparator() should return null
      public static <K, V> ImmutableSortedMap<K, V> of() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 52.9K bytes
    - Click Count (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractor.java

                try (FileOutputStream fos = new FileOutputStream(tempFile)) {
                    CopyUtil.copy(in, fos);
                }
    
                lhaFile = new LhaFile(tempFile);
                @SuppressWarnings("unchecked")
                final Enumeration<LhaHeader> entries = lhaFile.entries();
                long contentSize = 0;
                while (entries.hasMoreElements()) {
                    final LhaHeader head = entries.nextElement();
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Nov 23 12:19:14 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java

                      // Other tests will verify what real, warning-free usage looks like
                      // but here we have to do some serious fudging
                      @Override
                      @SuppressWarnings({"unchecked", "rawtypes"})
                      public Map<Class, Impl> create(Object... elements) {
                        MutableClassToInstanceMap<Impl> map = MutableClassToInstanceMap.create();
                        for (Object object : elements) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 5K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/ImmutableMapEntry.java

       * created arrays to have a {@code @Nullable} element type even when they're created directly with
       * {@code new ImmutableMapEntry[...]}, so it seems silly to insist on that only here.
       */
      @SuppressWarnings("unchecked") // Safe as long as the javadocs are followed
      static <K, V> ImmutableMapEntry<K, V>[] createEntryArray(int size) {
        return (ImmutableMapEntry<K, V>[]) new ImmutableMapEntry<?, ?>[size];
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 01 21:42:29 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  9. CLAUDE.md

    - **`org.codelibs.curl.CurlResponse`**: Response wrapper implementing `Closeable` for proper resource management
    - **`org.codelibs.curl.CurlException`**: Unchecked exception for HTTP errors
    
    ### I/O Layer
    
    - **`org.codelibs.curl.io.ContentCache`**: Handles automatic in-memory or on-disk caching of request/response bodies
    Created: Sat Dec 20 09:13:53 GMT 2025
    - Last Modified: Mon Nov 24 03:10:07 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java

      final transient Map<K, V> delegate;
    
      ForwardingImmutableMap(Map<? extends K, ? extends V> delegate) {
        this.delegate = Collections.unmodifiableMap(delegate);
      }
    
      @SuppressWarnings("unchecked")
      ForwardingImmutableMap(boolean throwIfDuplicateKeys, Entry<? extends K, ? extends V>... entries) {
        Map<K, V> delegate = Maps.newLinkedHashMap();
        for (Entry<? extends K, ? extends V> entry : entries) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 4K bytes
    - Click Count (0)
Back to Top