Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 180 for requireNonNull (0.14 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProblemCollectorRequest.java

         * @param severity
         * @param version
         */
        public ModelProblemCollectorRequest(Severity severity, Version version) {
            this.severity = Objects.requireNonNull(severity, "severity cannot be null");
            this.version = Objects.requireNonNull(version, "version cannot be null");
        }
    
        public Severity getSeverity() {
            return severity;
        }
    
        public Version getVersion() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvokerRequest.java

    import org.apache.maven.api.cli.mvn.MavenInvokerRequest;
    import org.apache.maven.api.cli.mvn.MavenOptions;
    import org.apache.maven.cling.invoker.BaseInvokerRequest;
    
    import static java.util.Objects.requireNonNull;
    
    /**
     * Maven execution request.
     *
     * @param <O> the options type this request carries
     */
    public class DefaultMavenInvokerRequest<O extends MavenOptions> extends BaseInvokerRequest<O>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

           *
           * This read is guaranteed to get us the right value because we only set this once (here).
           *
           * requireNonNull is safe because either our compareAndSet succeeded or it failed because
           * another thread did it for us.
           */
          seenExceptionsLocal = requireNonNull(seenExceptions);
        }
        return seenExceptionsLocal;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 28 20:40:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/AbstractValueGraph.java

      private static <N, V> Map<EndpointPair<N>, V> edgeValueMap(final ValueGraph<N, V> graph) {
        return Maps.asMap(
            graph.edges(),
            edge ->
                // requireNonNull is safe because the endpoint pair comes from the graph.
                requireNonNull(graph.edgeValueOrDefault(edge.nodeU(), edge.nodeV(), null)));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 13:59:28 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/ClingSupport.java

    import org.apache.maven.api.cli.InvokerRequest;
    import org.apache.maven.api.cli.Options;
    import org.apache.maven.api.cli.ParserException;
    import org.codehaus.plexus.classworlds.ClassWorld;
    
    import static java.util.Objects.requireNonNull;
    
    /**
     * The CLI "new-gen".
     *
     * @param <O> the options type
     * @param <R> the request type
     */
    public abstract class ClingSupport<O extends Options, R extends InvokerRequest<O>> {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java

        }
    
        public ClassRealm getCoreRealm() {
            return containerRealm;
        }
    
        public ClassRealm createProjectRealm(Model model, List<Artifact> artifacts) {
            Objects.requireNonNull(model, "model cannot be null");
    
            ClassLoader parent = getMavenApiRealm();
    
            return createRealm(getKey(model), RealmType.Project, parent, null, null, artifacts);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ContiguousSet.java

        if (effectiveRange.isEmpty()) {
          empty = true;
        } else {
          /*
           * requireNonNull is safe because the effectiveRange operations above would have thrown or
           * effectiveRange.isEmpty() would have returned true.
           */
          C afterLower = requireNonNull(range.lowerBound.leastValueAbove(domain));
          C beforeUpper = requireNonNull(range.upperBound.greatestValueBelow(domain));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java

            converterLookup = new EnhancedConverterLookup();
        }
    
        public void configureBean(BeanConfigurationRequest request) throws BeanConfigurationException {
            Objects.requireNonNull(request, "request cannot be null");
            Objects.requireNonNull(request.getBean(), "request.bean cannot be null");
    
            Object configuration = request.getConfiguration();
            if (configuration == null) {
                return;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/DefaultEncryptInvokerRequest.java

    import org.apache.maven.api.cli.mvnenc.EncryptInvokerRequest;
    import org.apache.maven.api.cli.mvnenc.EncryptOptions;
    import org.apache.maven.cling.invoker.BaseInvokerRequest;
    
    import static java.util.Objects.requireNonNull;
    
    public class DefaultEncryptInvokerRequest extends BaseInvokerRequest<EncryptOptions> implements EncryptInvokerRequest {
        private final EncryptOptions options;
    
        @SuppressWarnings("ParameterNumber")
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

                  lock.unlock();
                }
              });
        }
    
        @Override
        protected final void doStop() {
          // Both requireNonNull calls are safe because doStop can run only after a successful doStart.
          requireNonNull(runningTask);
          requireNonNull(executorService);
          runningTask.cancel(false);
          executorService.execute(
              () -> {
                try {
                  lock.lock();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 16:22:21 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top