From 0dc078ab83458cc7752293a08c92a6d690f1ee58 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 6 Mar 2022 09:05:34 -0800 Subject: [PATCH] Remove mention of CapturingMapFn from error messages. CapturingMapFn was deleted in 76c8c3a35776ecd6c568cf4ef1b6f2d2f52c0280. Closes #14904. PiperOrigin-RevId: 432784588 --- .../lib/collect/nestedset/NestedSetFingerprintCache.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/google/devtools/build/lib/collect/nestedset/NestedSetFingerprintCache.java b/src/main/java/com/google/devtools/build/lib/collect/nestedset/NestedSetFingerprintCache.java index 48f238a2332912..1611817797ad85 100644 --- a/src/main/java/com/google/devtools/build/lib/collect/nestedset/NestedSetFingerprintCache.java +++ b/src/main/java/com/google/devtools/build/lib/collect/nestedset/NestedSetFingerprintCache.java @@ -100,7 +100,7 @@ private DigestMap newDigestMap(CommandLineItem.MapFn mapFn) { throw new IllegalArgumentException( String.format( "Too many instances of CommandLineItem.ParametrizedMapFn '%s' detected. " - + "Please construct fewer instances or use CommandLineItem.CapturingMapFn.", + + "Please construct fewer instances.", mapFnClass.getName())); } } else { @@ -108,9 +108,8 @@ private DigestMap newDigestMap(CommandLineItem.MapFn mapFn) { throw new IllegalArgumentException( String.format( "Illegal mapFn implementation: '%s'. " - + "CommandLineItem.MapFn instances must be singletons. " - + "Please see CommandLineItem.ParametrizedMapFn or " - + "CommandLineItem.CapturingMapFn for alternatives.", + + "CommandLineItem.MapFn instances must be singletons." + + "Please see CommandLineItem.ParametrizedMapFn for an alternative.", mapFnClass.getName())); } }