Fix compile errors

This commit is contained in:
Andreas Dangel committed 2022-12-31 16:26:31 +01:00
1 parent 44914419e2
commit ebe4ebe71c
1 file changed
+3 -1
@@ -7,11 +7,13 @@ package net.sourceforge.pmd.lang.java.ast;
import org.junit.Assert;
import org.junit.Test;
import net.sourceforge.pmd.lang.java.BaseParserTest;
public class ASTCompactConstructorDeclarationTest extends BaseParserTest {
@Test
public void compactConstructorWithLambda() {
ASTCompactConstructorDeclaration compactConstructor = getNodes(ASTCompactConstructorDeclaration.class,
ASTCompactConstructorDeclaration compactConstructor = java.getNodes(ASTCompactConstructorDeclaration.class,
"import java.util.Objects;"
+ "record RecordWithLambdaInCompactConstructor(String foo) {"
+ " RecordWithLambdaInCompactConstructor {"