Skip to content

Commit

Permalink
Replace deprecated classAnnotationsWithRepeatable with declaredAnnota…
Browse files Browse the repository at this point in the history
…tionsWithRepeatable
  • Loading branch information
rsvoboda committed Apr 25, 2023
1 parent 5a4c0e9 commit 6d40f47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static boolean isOutboundConnector(ClassInfo ci) {
static List<ConnectorAttribute> getConnectorAttributes(BeanInfo bi, CombinedIndexBuildItem index,
ConnectorAttribute.Direction... directions) {
List<AnnotationInstance> attributes = bi.getImplClazz()
.classAnnotationsWithRepeatable(ReactiveMessagingDotNames.CONNECTOR_ATTRIBUTES, index.getIndex())
.declaredAnnotationsWithRepeatable(ReactiveMessagingDotNames.CONNECTOR_ATTRIBUTES, index.getIndex())
.stream().flatMap(ai -> Arrays.stream(ai.value().asNestedArray())).collect(Collectors.toList());
if (attributes.isEmpty()) {
AnnotationInstance attribute = bi.getImplClazz().declaredAnnotation(ReactiveMessagingDotNames.CONNECTOR_ATTRIBUTE);
Expand Down

0 comments on commit 6d40f47

Please sign in to comment.