Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 614 for equals (0.03 seconds)

  1. api/maven-api-core/src/test/java/org/apache/maven/api/JavaPathTypeTest.java

            assertEquals("--patch-module", formatted[0]);
            assertEquals(toPlatformSpecific("my.module=src/foo.java:src/bar.java"), formatted[1]);
        }
    
        /**
         * Tests the {@code equals} and {@code hashCode} methods of options.
         */
        @Test
        public void testEqualsHashCode() {
            JavaPathType.Modular foo1 = JavaPathType.patchModule("foo");
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 13 14:20:26 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  2. impl/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

                    .filter(p -> p.getArtifactId().equals(artifactId))
                    .findFirst()
                    .orElse(null);
            assertNotNull(plugin, "Unable to find plugin with artifactId: " + artifactId);
            List<PluginExecution> pluginExecutions = plugin.getExecutions();
            PluginExecution pluginExecution = pluginExecutions.stream()
                    .filter(pe -> pe.getId().equals(expectedId))
                    .findFirst()
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 94.8K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DeprecatedCoreExpressionValidator.java

                            PluginValidationManager.IssueLocality.EXTERNAL, mavenSession, mojoDescriptor, mojoClass, m));
        }
    
        private boolean isDeprecated(Parameter parameter) {
            return Objects.equals(
                            org.apache.maven.artifact.repository.ArtifactRepository.class.getName(), parameter.getType())
                    && DEPRECATED_CORE_PARAMETERS.containsKey(parameter.getDefaultValue());
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.5K bytes
    - Click Count (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/BootstrapCoreExtensionManager.java

            if (STRATEGY_PARENT_FIRST.equals(classLoadingStrategy)) {
                realm.importFrom(parentRealm, "");
            } else if (STRATEGY_PLUGIN.equals(classLoadingStrategy)) {
                coreExports.getExportedPackages().forEach((p, cl) -> realm.importFrom(cl, p));
                providedArtifacts = coreExports.getExportedArtifacts();
            } else if (STRATEGY_SELF_FIRST.equals(classLoadingStrategy)) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  5. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReaderTest.java

            verify(eventDispatcher).dispatch(event.capture());
    
            boolean missingArtifactDescriptor = false;
    
            for (RepositoryEvent evt : event.getAllValues()) {
                if (EventType.ARTIFACT_DESCRIPTOR_MISSING.equals(evt.getType())) {
                    assertEquals(
                            "Could not find artifact org.apache.maven.its:dep-mng5459:pom:0.4.0-20130404.090532-2 in repo ("
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  6. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleTaskSegmentCalculatorStub.java

            List<TaskSegment> taskSegments = new ArrayList<>(tasks.size());
    
            TaskSegment currentSegment = null;
    
            for (String task : tasks) {
                if (AGGR.equals(task)) {
                    boolean aggregating = true;
    
                    if (currentSegment == null || currentSegment.isAggregating() != aggregating) {
                        currentSegment = new TaskSegment(aggregating);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

             * {@return whether the given object represents the same type of path as this object}.
             */
            @Override
            public boolean equals(Object obj) {
                if (obj instanceof Modular m) {
                    return rawType() == m.rawType() && moduleName.equals(m.moduleName);
                }
                return false;
            }
    
            /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Dec 15 11:13:42 GMT 2025
    - 15.7K bytes
    - Click Count (1)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PropertyProfileActivator.java

                    reverseValue = true;
                    propValue = propValue.substring(1);
                }
    
                // we have a value, so it has to match the system value...
                boolean result = propValue.equals(sysValue);
    
                return reverseValue ? !result : result;
            } else {
                boolean result = StringUtils.isNotEmpty(sysValue);
    
                return reverseName ? !result : result;
            }
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  9. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorUtils.java

    @Deprecated(since = "4.0.0")
    public class ArtifactDescriptorUtils {
    
        public static Artifact toPomArtifact(Artifact artifact) {
            Artifact pomArtifact = artifact;
    
            if (!pomArtifact.getClassifier().isEmpty() || !"pom".equals(pomArtifact.getExtension())) {
                pomArtifact =
                        new DefaultArtifact(artifact.getGroupId(), artifact.getArtifactId(), "pom", artifact.getVersion());
            }
    
            return pomArtifact;
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 4K bytes
    - Click Count (0)
  10. impl/maven-core/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerTest.java

                            type + " includesDependencies");
                }
            }
        }
    
        private String trimApt(String content, String type) {
            String value = trimApt(content);
            return "= type".equals(value) ? type : value;
        }
    
        private String trimApt(String content) {
            content = content.replace('<', ' ').replace('>', ' ').trim();
    
            return (content.isEmpty()) ? null : content;
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 4K bytes
    - Click Count (0)
Back to Top