Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 157 for requireNonNull (0.24 sec)

  1. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

          return policy == Policies.DISABLED
              ? new ReentrantLock(fair)
              // requireNonNull is safe because createNodes inserts an entry for every E.
              // (If the caller passes `null` for the `rank` parameter, this will throw, but that's OK.)
              : new CycleDetectingReentrantLock(requireNonNull(lockGraphNodes.get(rank)), fair);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/internal/aether/ResolverLifecycle.java

    import javax.inject.Named;
    import javax.inject.Provider;
    
    import org.eclipse.aether.RepositorySystem;
    import org.eclipse.sisu.EagerSingleton;
    import org.eclipse.sisu.PreDestroy;
    
    import static java.util.Objects.requireNonNull;
    
    /**
     * Maven internal component that bridges container "shut down" to {@link RepositorySystem#shutdown()}.
     *
     * @since 3.9.0
     */
    @Named
    @EagerSingleton
    final class ResolverLifecycle {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Dec 13 22:19:20 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/TempFileCreator.java

    import static java.nio.file.attribute.AclEntryFlag.FILE_INHERIT;
    import static java.nio.file.attribute.AclEntryType.ALLOW;
    import static java.nio.file.attribute.PosixFilePermissions.asFileAttribute;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.collect.ImmutableList;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/Platform.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Aug 23 12:13:11 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/Platform.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Aug 23 12:13:11 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

        }
    
        @Override
        public ValueSetLink<K, V> getPredecessorInValueSet() {
          return requireNonNull(predecessorInValueSet); // see the comment on the class fields
        }
    
        @Override
        public ValueSetLink<K, V> getSuccessorInValueSet() {
          return requireNonNull(successorInValueSet); // see the comment on the class fields
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTransportProvider.java

    import static java.util.Objects.requireNonNull;
    
    @Named
    @Singleton
    public class DefaultTransportProvider implements TransportProvider {
        private final org.eclipse.aether.spi.connector.transport.TransporterProvider transporterProvider;
    
        @Inject
        public DefaultTransportProvider(TransporterProvider transporterProvider) {
            this.transporterProvider = requireNonNull(transporterProvider);
        }
    
        @Override
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 08:11:33 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/plugin/internal/AbstractMavenPluginParametersValidator.java

    import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator;
    import org.codehaus.plexus.configuration.PlexusConfiguration;
    
    import static java.util.Objects.requireNonNull;
    
    /**
     * Common implementations for plugin parameters configuration validation.
     *
     */
    abstract class AbstractMavenPluginParametersValidator implements MavenPluginConfigurationValidator {
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultArtifactDescriptorReader.java

                    Objects.requireNonNull(remoteRepositoryManager, "remoteRepositoryManager cannot be null");
            this.versionResolver = Objects.requireNonNull(versionResolver, "versionResolver cannot be null");
            this.versionRangeResolver = Objects.requireNonNull(versionRangeResolver, "versionRangeResolver cannot be null");
            this.artifactResolver = Objects.requireNonNull(artifactResolver, "artifactResolver cannot be null");
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/EnumBiMap.java

      private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
        keyTypeOrObjectUnderJ2cl = (Class<K>) requireNonNull(stream.readObject());
        valueTypeOrObjectUnderJ2cl = (Class<V>) requireNonNull(stream.readObject());
        setDelegates(
            new EnumMap<K, V>(keyTypeOrObjectUnderJ2cl), new EnumMap<V, K>(valueTypeOrObjectUnderJ2cl));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 6.3K bytes
    - Viewed (0)
Back to top