Skip to content

Commit

Permalink
fix annotation import error in GeneratedModelCustomizer
Browse files Browse the repository at this point in the history
  • Loading branch information
GangCheng committed May 27, 2024
1 parent 3a1e86b commit ca2f979
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void customizeLombok(TopLevelClass topLevelClass, IntrospectedTable intro
String lombokImport;
String lombokAnnotation;
if(lombokAnnotationName.contains("(")){
String pureAnnotation = StringUtils.substringBetween(lombokAnnotationName, ".", "(");
String pureAnnotation = StringUtils.substringBefore(StringUtils.substringAfterLast(StringUtils.substringBefore(lombokAnnotationName,"("),"."), "(");
lombokImport = StringUtils.substringBefore(lombokAnnotationName,"(");
lombokAnnotation = StringUtils.substringAfter(lombokAnnotationName,
StringUtils.substringBeforeLast(lombokImport, pureAnnotation)
Expand Down

0 comments on commit ca2f979

Please sign in to comment.