Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for computeIfAbsent (0.11 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                if (allProjects != null) {
                    Map<String, Map<String, Map<String, MavenProject>>> map = new HashMap<>();
                    allProjects.forEach(project -> map.computeIfAbsent(project.getGroupId(), k -> new HashMap<>())
                            .computeIfAbsent(project.getArtifactId(), k -> new HashMap<>())
                            .put(project.getVersion(), project));
                    this.allProjects = map;
                } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileInjector.java

        @Override
        public Model injectProfiles(
                Model model, List<Profile> profiles, ModelBuildingRequest request, ModelProblemCollector problems) {
            Model result = CACHE.computeIfAbsent(model, k -> new ConcurrentHashMap<>())
                    .computeIfAbsent(profiles, l -> doInjectProfiles(model, profiles));
            return result == KEY ? model : result;
        }
    
        private Model doInjectProfiles(Model model, List<Profile> profiles) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt

        }
    
        private
        fun addExecutedTaskPath(taskPath: String) {
            projectPathToExecutedTaskPaths.computeIfAbsent(taskPathToProjectPath(taskPath)) { mutableListOf() }.add(taskPath)
        }
    
        private
        fun addFailedTaskPath(taskPath: String) {
            projectPathToFailedTaskPaths.computeIfAbsent(taskPathToProjectPath(taskPath)) { mutableListOf() }.add(taskPath)
        }
    
        private
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jul 28 16:19:47 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java

            vFrom.setCompareScope(scopedVertices);
    
            List<MetadataGraphEdge> exList = excidentEdges.computeIfAbsent(vFrom, k -> new ArrayList<>());
    
            if (!exList.contains(e)) {
                exList.add(e);
            }
    
            List<MetadataGraphEdge> inList = incidentEdges.computeIfAbsent(vTo, k -> new ArrayList<>());
    
            if (!inList.contains(e)) {
                inList.add(e);
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

            ConcurrentMap<String, ConcurrentMap<String, Object>> pluginContextsByKey =
                    pluginContextsByProjectAndPluginKey.computeIfAbsent(projectKey, k -> new ConcurrentHashMap<>());
    
            String pluginKey = plugin.getPluginLookupKey();
    
            return pluginContextsByKey.computeIfAbsent(pluginKey, k -> new ConcurrentHashMap<>());
        }
    
        public ProjectDependencyGraph getProjectDependencyGraph() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.6K bytes
    - Viewed (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)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

            if (StringUtil.isBlank(value)) {
                return Collections.emptyList();
            }
            return split(value, ",").get(stream -> stream.map(String::trim)//
                    .map(s -> clientRuleCache.computeIfAbsent(s, t -> {
                        final String[] values = t.split(":", 2);
                        if (values.length != 2) {
                            return null;
                        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

            String referenceKey = "";
    
            if (summary.getReference() != null && !summary.getReference().isEmpty()) {
                referenceKey =
                        references.computeIfAbsent(summary.getReference(), k -> "[Help " + (references.size() + 1) + "]");
            }
    
            String msg = summary.getMessage();
    
            if (!referenceKey.isEmpty()) {
                if (msg.indexOf('\n') < 0) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

            for (ArtifactRepository repository : repositories) {
                String key = repository.getId();
    
                List<ArtifactRepository> aliasedRepos = reposByKey.computeIfAbsent(key, k -> new ArrayList<>());
    
                aliasedRepos.add(repository);
            }
    
            List<ArtifactRepository> effectiveRepositories = new ArrayList<>();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

            final Set<MavenProject> projectsIncludingParents = new HashSet<>();
            for (MavenProject project : session.getProjects()) {
                superPomModels.computeIfAbsent(
                        project.getModelVersion(),
                        v -> superPomProvider.getSuperModel(v).getDelegate());
                boolean isAdded = projectsIncludingParents.add(project);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
Back to top