From 52a31bc4ae2806907194d32567a820c670670357 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Wed, 24 Mar 2021 06:20:02 +0100 Subject: [records] [`@NonNull`] eclipse impl onfthe `@NonNull` on record components feature. All tests passing. --- test/core/src/lombok/RunTestsViaEcj.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/core/src/lombok') diff --git a/test/core/src/lombok/RunTestsViaEcj.java b/test/core/src/lombok/RunTestsViaEcj.java index 2e89f99b..afba8c7f 100644 --- a/test/core/src/lombok/RunTestsViaEcj.java +++ b/test/core/src/lombok/RunTestsViaEcj.java @@ -156,7 +156,12 @@ public class RunTestsViaEcj extends AbstractRunTests { CompilationUnitDeclaration cud = compilationUnit_.get(); if (cud == null) result.append("---- No CompilationUnit provided by ecj ----"); - else result.append(cud.toString()); + else { + String output = cud.toString(); + // starting somewhere around ecj16, the print code is a bit too cavalier with printing modifiers. + output = output.replace("non-sealed @val", "@val"); + result.append(output); + } if (eclipseAvailable()) { EclipseDomConversion.toDomAst(cud, sourceArray); -- cgit