Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for defensively (0.09 sec)

  1. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Nov 07 16:09:47 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  2. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java

            final int rankConstant = fessConfig.getRankFusionRankConstantAsInteger();
            // Guard against division by zero (should not happen due to caller checks, but defensive)
            if (searchers.length == 0) {
                logger.warn("searchWithMultipleSearchers called with empty searcher array");
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  4. 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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  5. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  6. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  7. 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  8. cmd/iam.go

    		// present.
    		if len(svcPolicies) == 0 {
    			policySet, _ := policy.GetPoliciesFromClaims(args.Claims, iamPolicyClaimNameOpenID())
    			svcPolicies = policySet.ToSlice()
    		}
    	}
    
    	// Defensive code: Do not allow any operation if no policy is found.
    	if !isOwnerDerived && len(svcPolicies) == 0 {
    		return false
    	}
    
    	var combinedPolicy policy.Policy
    	// Policies were found, evaluate all of them.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Oct 15 17:00:45 UTC 2025
    - 76.5K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    			poolObjInfos[i] = pinfo
    		}(i, pool, poolOpts[i])
    	}
    	wg.Wait()
    
    	// Sort the objInfos such that we always serve latest
    	// this is a defensive change to handle any duplicate
    	// content that may have been created, we always serve
    	// the latest object.
    	sort.Slice(poolObjInfos, func(i, j int) bool {
    		mtime1 := poolObjInfos[i].ObjInfo.ModTime
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 89.2K bytes
    - Viewed (0)
  10. cmd/data-scanner.go

    		// noncurrent versions of this object.
    		if lr.LockEnabled {
    			return lifecycle.Event{Action: lifecycle.NoneAction}
    		}
    
    	case lifecycle.DeleteVersionAction, lifecycle.DeleteRestoredVersionAction:
    		// Defensive code, should never happen
    		if obj.VersionID == "" {
    			return lifecycle.Event{Action: lifecycle.NoneAction}
    		}
    		if lr.LockEnabled && enforceRetentionForDeletion(ctx, obj) {
    			if serverDebugLog {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 45.5K bytes
    - Viewed (0)
Back to top