Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 76 for computeIfAbsent (0.18 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java

                throws ArtifactDescriptorException {
            Relocations relocations = (Relocations) session.getData()
                    .computeIfAbsent(getClass().getName() + ".relocations", () -> parseRelocations(session));
            if (relocations != null) {
                Artifact original = artifactDescriptorResult.getRequest().getArtifact();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 9K bytes
    - Viewed (0)
  2. 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);
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Dec 13 23:04:37 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. 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);
                }
            }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 10 07:39:11 UTC 2025
    - 25.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            }
    
            // Track connection metrics
            String key = getConnectionKey(address, port);
            connectionMetrics.computeIfAbsent(key, k -> new ConnectionMetrics()).recordConnection();
            activeConnections.incrementAndGet();
    
            if (nonPooled) {
                this.nonPooledConnections.offer(conn);
            } else {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/JsonExtractor.java

            } else {
                textBuilder.append(value).append(lineSeparator);
            }
    
            // Add to metadata if at top level
            if (depth <= 1 && StringUtil.isNotBlank(key)) {
                metadataMap.computeIfAbsent(key, k -> new ArrayList<>()).add(value);
            }
        }
    
        /**
         * Builds a nested key path.
         *
         * @param parentKey the parent key
         * @param currentKey the current key
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 03:46:53 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  6. 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());
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 29 08:17:07 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  7. 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() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 47K bytes
    - Viewed (0)
  8. 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: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Dec 11 09:47:03 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/audit/SecurityAuditLogger.java

            String key = type.name();
            long currentWindow = System.currentTimeMillis() / rateLimitWindow;
            String windowKey = key + "_" + currentWindow;
    
            AtomicLong counter = rateLimitCounters.computeIfAbsent(windowKey, k -> new AtomicLong(0));
            long currentCount = counter.incrementAndGet();
    
            // Clean up old windows periodically
            if (currentCount == 1) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenInvoker.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 Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Sep 11 17:20:46 UTC 2025
    - 28.2K bytes
    - Viewed (0)
Back to top