Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for newSet (0.09 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/NewestConflictResolver.java

    /**
     * Resolves conflicting artifacts by always selecting the newest declaration. Newest is defined as the
     * declaration whose version is greater according to <code>ArtifactVersion.compareTo</code>.
     *
     * @see ArtifactVersion#compareTo
     * @since 3.0
     */
    @Named("newest")
    @Singleton
    @Deprecated
    public class NewestConflictResolver implements ConflictResolver {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactHashing.java

            int newNext = getNext(entry, mask);
            if (lastEntryIndex == -1) {
              // we need to update the root link from table[]
              tableSet(table, tableIndex, newNext);
            } else {
              // we need to update the link from the chain
              entries[lastEntryIndex] = maskCombine(entries[lastEntryIndex], newNext, mask);
            }
    
            return entryIndex;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 15:34:52 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashing.java

            int newNext = getNext(entry, mask);
            if (lastEntryIndex == -1) {
              // we need to update the root link from table[]
              tableSet(table, tableIndex, newNext);
            } else {
              // we need to update the link from the chain
              entries[lastEntryIndex] = maskCombine(entries[lastEntryIndex], newNext, mask);
            }
    
            return entryIndex;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 15:34:52 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicy.java

         * artifact, closer to the entry point, is selected
         */
        @Configuration(name = "closer-first", value = "true")
        private boolean closerFirst = true;
    
        /**
         * newer artifact is selected
         */
        @Configuration(name = "newer-first", value = "true")
        private boolean newerFirst = true;
    
        public MetadataGraphEdge apply(MetadataGraphEdge e1, MetadataGraphEdge e2) {
            int depth1 = e1.getDepth();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

            StringBuilder newkey = new StringBuilder();
    
            for (int i = 0; i < key.length(); i++) {
                char c = key.charAt(i);
    
                if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c)) {
                    // escape the separator
                    newkey.append('\\');
                    newkey.append(c);
                } else {
                    newkey.append(c);
                }
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/NewestConflictResolverTest.java

    class NewestConflictResolverTest extends AbstractConflictResolverTest {
        // constructors -----------------------------------------------------------
    
        public NewestConflictResolverTest() throws Exception {
            super("newest");
        }
    
        // tests ------------------------------------------------------------------
    
        /**
         * Tests that <code>a:2.0</code> wins in the scenario:
         * <pre>
         * a:1.0
         * b:1.0 -&gt; a:2.0
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/normalization/DefaultModelNormalizer.java

            for (int i = 0; i < list.size(); i++) {
                T oldT = list.get(i);
                T newT = modifer.apply(oldT);
                if (newT != oldT) {
                    if (newList == null) {
                        newList = new ArrayList<>(list);
                    }
                    newList.set(i, newT);
                }
            }
            return newList;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/execution/BuildResumptionDataRepository.java

     */
    package org.apache.maven.execution;
    
    import org.apache.maven.project.MavenProject;
    
    /**
     * Instances of this interface retrieve and store data for the --resume / -r feature. This data is used to ensure newer
     * builds of the same project, that have the -r command-line flag, skip successfully built projects during earlier
     * invocations of Maven.
     */
    public interface BuildResumptionDataRepository {
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/AbstractVersionTransformation.java

                    } else {
                        message += " from local repository";
                    }
                    getLogger().debug(message);
                } else {
                    // Locally installed file is newer, don't use the resolved version
                    getLogger().debug(artifact.getArtifactId() + ": using locally installed snapshot");
                }
            }
            return version;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java

                    left + " should be older than " + right);
            assertTrue(
                    newArtifactVersion(right).compareTo(newArtifactVersion(left)) > 0,
                    right + " should be newer than " + left);
        }
    
        private void assertVersionEqual(String left, String right) {
            assertTrue(
                    newArtifactVersion(left).compareTo(newArtifactVersion(right)) == 0,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top