Fix compile errors
This commit is contained in:
1 file changed
+3
-1
+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 {"
|
||||
|
||||
Reference in new issue
Block a user