Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for defensively (0.08 sec)

  1. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                assertArrayEquals(hashAlgos, context.getHashAlgos());
                // The implementation returns the same reference, not a defensive copy
                assertSame(hashAlgos, context.getHashAlgos());
            }
    
            @Test
            @DisplayName("Should return salt correctly")
            void testGetSalt() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

            if (pendingOps.isEmpty()) {
                return;
            }
    
            log.info("Redistributing {} pending operations from failed channel", pendingOps.size());
    
            // Create a defensive copy to avoid ConcurrentModificationException
            List<CommonServerMessageBlock> operationsCopy = List.copyOf(pendingOps);
    
            // Clear the failed channel's pending operations first
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSet.java

       * is unnecessary; for example, {@code copyOf(copyOf(anArrayList))} will copy the data only once.
       * This reduces the expense of habitually making defensive copies at API boundaries. However, the
       * precise conditions for skipping the copy operation are undefined.
       *
       * @throws NullPointerException if any of {@code elements} is null
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableCollection.java

     *       unnecessary; for example, {@code copyOf(copyOf(anArrayList))} should copy the data only
     *       once. This reduces the expense of habitually making defensive copies at API boundaries.
     *       However, the precise conditions for skipping the copy operation are undefined.
     *   <li><b>Warning:</b> a view collection such as {@link ImmutableMap#keySet} or {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableCollection.java

     *       unnecessary; for example, {@code copyOf(copyOf(anArrayList))} should copy the data only
     *       once. This reduces the expense of habitually making defensive copies at API boundaries.
     *       However, the precise conditions for skipping the copy operation are undefined.
     *   <li><b>Warning:</b> a view collection such as {@link ImmutableMap#keySet} or {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          if (!readable) return null
          if (!civilizedFileSystem && (currentEditor != null || zombie)) return null
    
          val sources = mutableListOf<Source>()
          val lengths = this.lengths.clone() // Defensive copy since these can be zeroed out.
          try {
            for (i in 0 until valueCount) {
              sources += newSource(i)
            }
            return Snapshot(key, sequenceNumber, sources, lengths)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/FluentIterable.java

            return Iterators.concat(Iterators.transform(inputs.iterator(), Iterable::iterator));
          }
        };
      }
    
      /** Concatenates a varargs array of iterables without making a defensive copy of the array. */
      private static <T extends @Nullable Object> FluentIterable<T> concatNoDefensiveCopy(
          Iterable<? extends T>... inputs) {
        for (Iterable<? extends T> input : inputs) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/FluentIterable.java

            return Iterators.concat(Iterators.transform(inputs.iterator(), Iterable::iterator));
          }
        };
      }
    
      /** Concatenates a varargs array of iterables without making a defensive copy of the array. */
      private static <T extends @Nullable Object> FluentIterable<T> concatNoDefensiveCopy(
          Iterable<? extends T>... inputs) {
        for (Iterable<? extends T> input : inputs) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

              return copyOfSortedEntries(comparator, multiset.entrySet().asList());
            } else {
              return multiset;
            }
          }
        }
        elements = Lists.newArrayList(elements); // defensive copy
        TreeMultiset<E> sortedCopy = TreeMultiset.create(checkNotNull(comparator));
        Iterables.addAll(sortedCopy, elements);
        return copyOfSortedEntries(comparator, sortedCopy.entrySet());
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  10. cmd/erasure-healing.go

    			// any valid content, if any is recoverable. But if
    			// notFoundDataDirs are already greater than the data
    			// blocks all bets are off and it is safe to purge.
    			//
    			// This is purely a defensive code, ideally parityBlocks
    			// is sufficient, however we can't know that since we
    			// do have the FileInfo{}.
    			return validMeta, true
    		}
    
    		// We have no idea what this file is, leave it as is.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 34.6K bytes
    - Viewed (0)
Back to top