Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 32 for computeIfAbsent (0.16 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

      override fun <T : Any> tag(
        type: KClass<T>,
        computeIfAbsent: () -> T,
      ): T = tags.computeIfAbsent(type, computeIfAbsent)
    
      override fun <T : Any> tag(
        type: Class<T>,
        computeIfAbsent: () -> T,
      ): T = tags.computeIfAbsent(type.kotlin, computeIfAbsent)
    
      @SuppressWarnings("CloneDoesntCallSuperClone") // We are a final type & this saves clearing state.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 12:06:21 GMT 2026
    - 19.5K bytes
    - Click Count (0)
  2. compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java

            }
            return plural;
        }
    
        private void recordString(String path, String value) {
            pathStats
                    .computeIfAbsent(path, k -> new HashMap<>())
                    .computeIfAbsent(value, k -> new StringStats())
                    .recordOccurrence(value);
        }
    
        List<PathAnalysis> getPathAnalysisSorted() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  3. 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 {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Dec 15 11:20:38 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java

                SessionData data = session.getSession().getData();
                Map<MavenProject, OwnerReentrantLock> locks = data.computeIfAbsent(PROJECT_LOCKS, ConcurrentHashMap::new);
                return locks.computeIfAbsent(session.getCurrentProject(), p -> new OwnerReentrantLock());
            }
        }
    
        static class OwnerReentrantLock extends ReentrantLock {
            @Override
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jun 12 14:55:55 GMT 2025
    - 21K bytes
    - Click Count (0)
  5. src/main/java/jcifs/util/AuthenticationRateLimiter.java

                return false;
            }
    
            // Check per-account limit
            if (username != null) {
                AccountAttempts account = accountAttempts.computeIfAbsent(username, k -> new AccountAttempts());
                if (account.isLockedOut()) {
                    if (account.getLockoutExpiry().isAfter(Instant.now())) {
                        totalAttemptsBlocked.incrementAndGet();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelper.java

            if (setterInfo == null) {
                // Look for any method named "set" with one parameter
                Map<String, MethodInfo> classMethodCache = METHOD_CACHE.computeIfAbsent(beanType, this::buildMethodCache);
                setterInfo = classMethodCache.get("set");
            }
    
            if (setterInfo == null) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Nov 12 14:59:46 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/ErrorReportingTestListener.java

            if (outputEvent.getMessage().startsWith(REPRODUCE_WITH_PREFIX)) {
                Deque<String> lines = reproductionLines.computeIfAbsent(Descriptor.of(suite), d -> new LinkedList<>());
                lines.add(outputEvent.getMessage());
            }
    
            EventWriter eventWriter = eventWriters.computeIfAbsent(Descriptor.of(suite), EventWriter::new);
            eventWriter.write(outputEvent);
        }
    
        @Override
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 10.7K bytes
    - Click Count (0)
  8. 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);
            }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 13K bytes
    - Click Count (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java

            }
    
            private LongAdder getCounter(BuilderProblem.Severity severity) {
                return counters.computeIfAbsent(severity, k -> new LongAdder());
            }
    
            private List<P> getProblems(BuilderProblem.Severity severity) {
                return problems.computeIfAbsent(severity, k -> new CopyOnWriteArrayList<>());
            }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jul 18 17:30:19 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/DistroTestPlugin.java

                }, depsTask);
    
                if (distribution.getPlatform() == Platform.WINDOWS) {
                    windowsTestTasks.add(destructiveTask);
                } else {
                    linuxTestTasks.computeIfAbsent(distribution.getType(), k -> new ArrayList<>()).add(destructiveTask);
                }
                destructiveDistroTest.configure(t -> t.dependsOn(destructiveTask));
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Sep 28 21:31:21 GMT 2021
    - 23.1K bytes
    - Click Count (0)
Back to Top