From 07b1ecca837469d5d5505ee3f2fef14f72d994a2 Mon Sep 17 00:00:00 2001 From: Yevhenii Berlizov Date: Sun, 12 May 2024 17:02:09 +0300 Subject: [PATCH] add catch of new restricted identifiers --- .../assertj/assertions/generator/BaseAssertionGenerator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/assertj/assertions/generator/BaseAssertionGenerator.java b/src/main/java/org/assertj/assertions/generator/BaseAssertionGenerator.java index ca96069..135733a 100644 --- a/src/main/java/org/assertj/assertions/generator/BaseAssertionGenerator.java +++ b/src/main/java/org/assertj/assertions/generator/BaseAssertionGenerator.java @@ -125,6 +125,7 @@ public class BaseAssertionGenerator implements AssertionGenerator, AssertionsEnt "protected", "private", "public", + "record", "return", "short", "static", @@ -138,9 +139,11 @@ public class BaseAssertionGenerator implements AssertionGenerator, AssertionsEnt "transient", "true", "try", + "var", "void", "volatile", - "while"); + "while", + "yield"); /** * This regexp shall match a java class's name inside an user template.