Skip to content

Commit

Permalink
Fix compilation for [DROOLS-5985] by replacing the TemplateCompiledFE…
Browse files Browse the repository at this point in the history
…ELExpression (apache#3874)

* Fix compilation for [DROOLS-5985] by replacing the  TemplateCompiledFEELExpression

* Retrigger GH

* Retrigger GH 2

* Retrigger GH 3

* Retrigger GH 4
  • Loading branch information
lucamolteni authored Oct 5, 2021
1 parent 2e5751f commit 0ee8a62
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import java.util.List;

import com.github.javaparser.JavaParser;
import com.github.javaparser.StaticJavaParser;
import com.github.javaparser.ast.ArrayCreationLevel;
import com.github.javaparser.ast.CompilationUnit;
Expand Down Expand Up @@ -109,6 +108,10 @@ private void renameFeelExpressionClass(String testClass, ClassOrInterfaceDeclara
classOrInterfaceDeclaration
.setName(finalTestClass);

classOrInterfaceDeclaration.findAll(ClassOrInterfaceType.class,
ce -> ce.getNameAsString().equals("TemplateCompiledFEELExpression"))
.forEach(n -> n.replace(new ClassOrInterfaceType(null, finalTestClass)));

classOrInterfaceDeclaration.findAll(ConstructorDeclaration.class)
.forEach(n -> n.replace(new ConstructorDeclaration(finalTestClass)));
}
Expand Down

0 comments on commit 0ee8a62

Please sign in to comment.