Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into rename-rosetta-top-le…
Browse files Browse the repository at this point in the history
…vel-to-rune
  • Loading branch information
minesh-s-patel committed May 22, 2024
2 parents 464c9db + f5cb173 commit ff06239
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ class ModelMetaGenerator {
public «List»<«Validator»<? super «dataClass»>> dataRules(«ValidatorFactory» factory) {
return «Arrays».asList(
«FOR r : conditions SEPARATOR ','»
factory.create(«r.containingClassNamespace.condition».«r.ruleName.toConditionJavaType».class)
«val containingClassName = r.containingClassNamespace + '.' + r.className»
«val conditionClassName = r.containingClassNamespace.condition + '.' + r.ruleName.toConditionJavaType»
factory.<«containingClassName»>create(«conditionClassName».class)
«ENDFOR»
);
}
Expand All @@ -76,7 +78,7 @@ class ModelMetaGenerator {
«IF !qualifierFuncs.nullOrEmpty»
return Arrays.asList(
«FOR qf : qualifierFuncs SEPARATOR ','»
factory.create(«qf.toFunctionJavaClass».class)
factory.<«dataClass»>create(«qf.toFunctionJavaClass».class)
«ENDFOR»
);
«ELSE»
Expand Down

0 comments on commit ff06239

Please sign in to comment.