Skip to content

Commit

Permalink
False warning logged if entity has @instanceName on method-based prop…
Browse files Browse the repository at this point in the history
  • Loading branch information
gorbunkov committed Dec 11, 2023
1 parent 76ded63 commit 60597d3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ public InstanceNameRec parseNamePattern(MetaClass metaClass) {
.collect(Collectors.toList());
List<MetaProperty> nameProperties = metaClass.getProperties().stream()
.filter(p -> p.getAnnotatedElement().getAnnotation(InstanceName.class) != null)
.filter(p -> !metadataTools.isMethodBased(p))
.collect(Collectors.toList());
if (!instanceNameMethods.isEmpty()) {
method = instanceNameMethods.get(0);
Expand Down

0 comments on commit 60597d3

Please sign in to comment.