Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 100 for singletonList (0.07 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/DefaultProfileSelectorTest.java

                        Profile profile, ProfileActivationContext context, ModelProblemCollector problems) {
                    return true;
                }
            });
    
            List<Profile> profiles = Collections.singletonList(newProfile("one"));
            DefaultProfileActivationContext context = new DefaultProfileActivationContext();
            SimpleProblemCollector problems = new SimpleProblemCollector();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

    /** Returns an immutable copy of this. */
    @Suppress("UNCHECKED_CAST")
    internal fun <T> List<T>.toImmutableList(): List<T> =
      when {
        this.isEmpty() -> emptyList()
        this.size == 1 -> Collections.singletonList(this[0])
        // Collection.toArray returns Object[] (covariant).
        // It is faster than creating real T[] via reflection (Arrays.copyOf).
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (1)
  3. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java

                        .filter(projectAndSubmodules::contains)
                        .collect(Collectors.toList()); // sorted and filtered to what we need
            } else {
                return Collections.singletonList(project);
            }
        }
    
        public void resolveProjectDependencies(
                MavenProject project,
                Collection<String> scopesToCollect,
                Collection<String> scopesToResolve,
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  4. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolverTest.java

                    new File("src/test/projects/lifecycle-dependency-resolver/pom.xml"), new Properties(), true);
            Collection<String> scopesToCollect = null;
            Collection<String> scopesToResolve = Collections.singletonList("compile");
            boolean aggregating = false;
    
            Set<Artifact> reactorArtifacts = new HashSet<>(3);
            for (MavenProject reactorProject : session.getProjects()) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/lifecycle/providers/packaging/AbstractLifecycleMappingProvider.java

            lifecycle.setId("default");
            lifecycle.setLifecyclePhases(Collections.unmodifiableMap(lifecyclePhaseBindings));
    
            this.lifecycleMapping = new DefaultLifecycleMapping(Collections.singletonList(lifecycle));
        }
    
        @Override
        public LifecycleMapping get() {
            return lifecycleMapping;
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Dec 22 12:24:35 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java

            channel2.setState(ChannelState.ESTABLISHED);
        }
    
        @Test
        void testSingleChannelSelection() {
            when(mockChannelManager.getHealthyChannels()).thenReturn(Collections.singletonList(channel1));
    
            ChannelInfo selected = loadBalancer.selectChannel(mockMessage);
            assertEquals(channel1, selected);
        }
    
        @Test
        void testNoChannelsAvailable() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  7. impl/maven-core/src/test/java/org/apache/maven/model/ModelBuilderTest.java

                    null);
            InternalSession.associate(rsession, session);
    
            List<ProjectBuildingResult> results = projectBuilder.build(
                    Collections.singletonList(new File("src/test/resources/projects/tree/pom.xml")), true, request);
    
            assertEquals(3, results.size());
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 16 13:41:14 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java

       * after serialization.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static List<Method> getInverseSameAfterSerializingMethods() {
        return Collections.singletonList(getMethod("testInverseSerialization"));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      private static Method getMethod(String methodName) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/aether/LegacyRepositorySystemSessionExtender.java

                        repository.getLayout(),
                        repository.getSnapshots(),
                        repository.getReleases());
    
                repository.setMirroredRepositories(Collections.singletonList(original));
    
                repository.setId(mirror.getId());
                repository.setUrl(mirror.getUrl());
    
                if (mirror.getLayout() != null && !mirror.getLayout().isEmpty()) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/project/artifact/AttachedArtifact.java

                    parent.getScope(),
                    type,
                    classifier,
                    artifactHandler,
                    parent.isOptional());
    
            setDependencyTrail(Collections.singletonList(parent.getId()));
    
            this.parent = parent;
    
            if (getId().equals(parent.getId())) {
                throw new InvalidArtifactRTException(
                        parent.getGroupId(),
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top