From 6fe6a959cf5edfd100732459ac896472bcf59f3d Mon Sep 17 00:00:00 2001 From: Googler Date: Mon, 30 Jan 2023 08:45:24 -0800 Subject: [PATCH] Use memoizedFlattenAndGetSize instead of toList.size to get a NestedSet's size. PiperOrigin-RevId: 505705087 Change-Id: I7987e4f23706272f4ab10dcf51740182192d6d97 --- .../build/lib/analysis/RuleConfiguredTargetBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/google/devtools/build/lib/analysis/RuleConfiguredTargetBuilder.java b/src/main/java/com/google/devtools/build/lib/analysis/RuleConfiguredTargetBuilder.java index 8a6a9728894f70..9a9fd613ba378a 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/RuleConfiguredTargetBuilder.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/RuleConfiguredTargetBuilder.java @@ -209,7 +209,7 @@ public ConfiguredTarget build() throws ActionConflictException, InterruptedExcep if (ruleContext.getRule().hasAnalysisTestTransition()) { NestedSet