Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 522 for safety (0.04 sec)

  1. guava/src/com/google/common/collect/CompactHashMap.java

        return requireNonNull(values);
      }
    
      /*
       * The following methods are safe to call as long as the conditions in the *previous* comment are
       * met *and* the index is less than size().
       *
       * (The above explains when these methods are safe from a `nullness` perspective. From an
       * `unchecked` perspective, they're safe because we put only K/V elements into each array.)
       */
    
      @SuppressWarnings("unchecked")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterators.java

        return emptyListIterator();
      }
    
      /**
       * Returns the empty iterator.
       *
       * <p>The {@link Iterable} equivalent of this method is {@link ImmutableSet#of()}.
       */
      // Casting to any type is safe since there are no actual elements.
      @SuppressWarnings("unchecked")
      static <T extends @Nullable Object> UnmodifiableListIterator<T> emptyListIterator() {
        return (UnmodifiableListIterator<T>) ArrayItr.EMPTY;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ForwardingNavigableSet.java

     * contract.
     *
     * <p>The {@code standard} methods and the collection views they return are not guaranteed to be
     * thread-safe, even when all of the methods that they depend on are thread-safe.
     *
     * @author Louis Wasserman
     * @since 12.0
     */
    @GwtIncompatible
    public abstract class ForwardingNavigableSet<E extends @Nullable Object>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/TreeBasedTable.java

       * TreeBasedTable}.
       */
      public static <R, C, V> TreeBasedTable<R, C, V> create(TreeBasedTable<R, C, ? extends V> table) {
        TreeBasedTable<R, C, V> result =
            // requireNonNull is safe, as discussed in rowComparator() below.
            new TreeBasedTable<>(
                requireNonNull(table.rowKeySet().comparator()), table.columnComparator());
        result.putAll(table);
        return result;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/SneakyThrows.java

       *     throw.
       */
      @CanIgnoreReturnValue
      static Error sneakyThrow(Throwable t) {
        throw new SneakyThrows<Error>().throwIt(t);
      }
    
      @SuppressWarnings("unchecked") // not really safe, but that's the point
      private Error throwIt(Throwable t) throws T {
        throw (T) t;
      }
    
      private SneakyThrows() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/SneakyThrows.java

       *     throw.
       */
      @CanIgnoreReturnValue
      static Error sneakyThrow(Throwable t) {
        throw new SneakyThrows<Error>().throwIt(t);
      }
    
      @SuppressWarnings("unchecked") // not really safe, but that's the point
      private Error throwIt(Throwable t) throws T {
        throw (T) t;
      }
    
      private SneakyThrows() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Feb 03 21:52:39 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/BufferCacheImpl.java

         *
         * @see jcifs.BufferCache#releaseBuffer(byte[])
         */
        @Override
        public void releaseBuffer(final byte[] buf) {
            if (buf == null) {
                return;
            }
            // better safe than sorry: prevent leaks if there is some out of bound access
            Arrays.fill(buf, (byte) 0);
            synchronized (this.cache) {
                if (this.freeBuffers < this.cache.length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/ArtifactScopeEnum.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.artifact;
    
    /**
     * Type safe reincarnation of Artifact scope. Also supplies the {@code DEFAULT_SCOPE} as well
     * as convenience method to deal with scope relationships.
     *
     *
     */
    @Deprecated
    public enum ArtifactScopeEnum {
        compile(1),
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultClasspathTransformation.java

            }
        }
    
        // ===================================================================================================
        /**
         * Helper class to traverse graph. Required to make the containing method thread-safe
         * and yet use class level data to lessen stack usage in recursion
         */
        private class ClasspathGraphVisitor {
            MetadataGraph graph;
    
            ClasspathContainer cpc;
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/entity/RequestParameter.java

     * This class encapsulates HTTP request parameters that can have multiple values,
     * such as query parameters, form parameters, or other request-related data.
     *
     * <p>This class is immutable and thread-safe. Once created, the parameter name
     * and values cannot be modified.</p>
     *
     */
    public class RequestParameter {
    
        /** The name of the request parameter. */
        private final String name;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top