diff --git a/src/test/java/com/google/devtools/build/android/r8/desugar/DesugarInfoCollector.java b/src/test/java/com/google/devtools/build/android/r8/desugar/DesugarInfoCollector.java index d60fabbb6b5631..bd672ee4fc4694 100644 --- a/src/test/java/com/google/devtools/build/android/r8/desugar/DesugarInfoCollector.java +++ b/src/test/java/com/google/devtools/build/android/r8/desugar/DesugarInfoCollector.java @@ -74,7 +74,7 @@ public void visit( super.visit(version, access, name, signature, superName, interfaces); assertThat(computeMinorClassFileVersion(version)).isEqualTo(0); largestClassFileVersion = Math.max(version, largestClassFileVersion); - if (classNameFromBinaryName(name).startsWith("-$$Lambda$")) { + if (classNameFromBinaryName(name).contains("-$$ExternalSyntheticLambda")) { numberOfDesugaredLambdas++; } if (name.endsWith("$-CC")) {