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.