From 59de835b610c6d44fff384ec3ab89e3f7289ff42 Mon Sep 17 00:00:00 2001 From: Alexander Stekelenburg Date: Wed, 5 Jun 2024 09:41:12 +0200 Subject: [PATCH] Fix build on JDK 21+, resolves #1146 --- src/helpers/scala/meta/ResultStream.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/scala/meta/ResultStream.scala b/src/helpers/scala/meta/ResultStream.scala index 6420f782a2..b5a4a1e04f 100644 --- a/src/helpers/scala/meta/ResultStream.scala +++ b/src/helpers/scala/meta/ResultStream.scala @@ -108,7 +108,7 @@ object ResultStream { case Function(fn) => if ( fn.getClass.getName.startsWith( - "scala.meta.internal.prettyprinters.TreeSyntax$SyntaxInstances$$Lambda$" + "scala.meta.internal.prettyprinters.TreeSyntax$SyntaxInstances$$Lambda" ) ) { // Currently the only instance: prepends a space if the surrounding output is dangerous.