You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/12/09 13:32:33 UTC
[GitHub] [beam] pavel-avilov commented on a change in pull request #16172: [BEAM-13417] [Playground] Add java preparator for run katas
pavel-avilov commented on a change in pull request #16172:
URL: https://github.com/apache/beam/pull/16172#discussion_r765790081
##########
File path: playground/backend/internal/preparators/java_preparators.go
##########
@@ -48,6 +48,19 @@ func GetJavaPreparators(filePath string) *[]Preparator {
return &[]Preparator{publicClassModification, additionalPackage}
}
+// GetJavaPreparatorsForKatas returns preparation methods that should be applied to katas with Java code
+func GetJavaPreparatorsForKatas(filePath string) *[]Preparator {
+ publicClassModification := Preparator{
+ Prepare: replace,
+ Args: []interface{}{filePath, classWithPublicModifierPattern, classWithoutPublicModifierPattern},
+ }
+ removePackage := Preparator{
+ Prepare: replace,
+ Args: []interface{}{filePath, packagePattern, ``},
Review comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org