Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 65 for computeIfAbsent (0.12 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleMappingDelegate.java

        }
    
        private void addMojoExecution(
                Map<PhaseId, List<MojoExecution>> phaseBindings, MojoExecution mojoExecution, PhaseId phaseId) {
            List<MojoExecution> mojoExecutions = phaseBindings.computeIfAbsent(phaseId, k -> new ArrayList<>());
    
            mojoExecutions.add(mojoExecution);
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Dec 13 23:04:37 GMT 2024
    - 8.5K bytes
    - Click Count (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/SessionData.java

         * @param supplier the supplier will compute the new value
         * @return the session data associated with the key
         */
        @Nullable
        <T> T computeIfAbsent(@Nonnull Key<T> key, @Nonnull Supplier<T> supplier);
    
        /**
         * Create a key using the given class as an identifier and as the type of the object.
         */
        static <T> Key<T> key(Class<T> clazz) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Feb 28 23:31:09 GMT 2024
    - 4.7K bytes
    - Click Count (0)
  3. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/ImmutableCollections.java

                throw uoe();
            }
    
            @Override
            public V replace(K key, V value) {
                throw uoe();
            }
    
            @Override
            public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) {
                throw uoe();
            }
    
            @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Jul 07 11:47:42 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindBadMultiLangSnippets.java

                }
            }
            return Language.UNKNOWN;
        }
    
        private static void addError(Map<File, List<Error>> errors, File file, Error error) {
            errors.computeIfAbsent(file, f -> new ArrayList<>()).add(error);
        }
    
        private enum Language { KOTLIN, GROOVY, UNKNOWN }
    
        private static final class Snippet {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Aug 29 10:12:17 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSession.java

        }
    
        @Override
        public Project getProject(MavenProject project) {
            return project != null && project.getBasedir() != null
                    ? allProjects.computeIfAbsent(project.getId(), id -> new DefaultProject(this, project))
                    : null;
        }
    
        @Override
        public List<ArtifactRepository> toArtifactRepositories(List<RemoteRepository> repositories) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

                }
    
                if (cls.isArray()) {
                    evaluateArray(target);
                } else if (isQualifiedForInterpolation(cls)) {
                    Field[] fields = FIELDS_BY_CLASS.computeIfAbsent(cls, k -> cls.getDeclaredFields());
    
                    for (Field field : fields) {
                        Class<?> type = field.getType();
                        if (isQualifiedForInterpolation(field, type)) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java

                }
    
                String projectKey = ArtifactUtils.versionlessKey(project.getGroupId(), project.getArtifactId());
    
                Map<String, Vertex> vertices = vertexMap.computeIfAbsent(projectKey, k -> new HashMap<>(2, 1));
    
                vertices.put(project.getVersion(), graph.addVertex(projectId));
            }
    
            for (Vertex projectVertex : graph.getVertices()) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 10.3K bytes
    - Click Count (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

                gasLocations.computeIfAbsent(ga, k -> new ArrayList<>()).add(location);
                // TODO: metaversions could be extensible enum with these two values out of the box
                if ("LATEST".equals(coreExtension.getVersion()) || "RELEASE".equals(coreExtension.getVersion())) {
                    metaVersionLocations.computeIfAbsent(ga, k -> new ArrayList<>()).add(location);
                }
            }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:39:11 GMT 2025
    - 25.5K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java

            SessionData data = request.getRepositorySession().getData();
            return (ConcurrentMap<Key, PluginVersionResult>)
                    data.computeIfAbsent(CACHE_KEY, () -> new ConcurrentHashMap<>(256));
        }
    
        private static Key getKey(PluginVersionRequest request) {
            return new Key(request.getGroupId(), request.getArtifactId(), request.getRepositories());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 29 08:17:07 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

            override fun <T> tag(type: Class<out T>): T? = TODO()
    
            override fun <T : Any> tag(
              type: KClass<T>,
              computeIfAbsent: () -> T,
            ): T = TODO()
    
            override fun <T : Any> tag(
              type: Class<T>,
              computeIfAbsent: () -> T,
            ): T = TODO()
    
            override fun clone(): Call = TODO()
          }
      }
    
      @Test
      fun callback() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 47K bytes
    - Click Count (0)
Back to Top