Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for calculateWeight (0.07 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparator.java

            if (existingWeight != null) {
                return existingWeight;
            }
    
            // Calculate weight without using computeIfAbsent to avoid recursive update issues
            long weight = calculateWeight(project);
    
            // Use putIfAbsent to handle concurrent access safely
            Long previousWeight = projectWeights.putIfAbsent(project, weight);
            return previousWeight != null ? previousWeight : weight;
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Aug 06 12:03:40 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top