Skip to content

Commit 29f3d0d

Browse files
committed
Doc Polishing
- remove discussion about `@RabbitListeners`; pre java-8 is no longer supported.
1 parent 42f8bd5 commit 29f3d0d

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/annotation/AbstractRabbitAnnotationDrivenTests.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -323,20 +323,16 @@ public void defaultHandle(@Validated String msg) {
323323
@Component
324324
static class RabbitListenersBean {
325325

326-
@RabbitListeners({
327-
@RabbitListener(id = "first", queues = "myQueue"),
328-
@RabbitListener(id = "second", queues = "anotherQueue")
329-
})
326+
@RabbitListener(id = "first", queues = "myQueue")
327+
@RabbitListener(id = "second", queues = "anotherQueue")
330328
public void repeatableHandle(String msg) {
331329
}
332330

333331
}
334332

335333
@Component
336-
@RabbitListeners({
337-
@RabbitListener(id = "third", queues = "class1"),
338-
@RabbitListener(id = "fourth", queues = "class2")
339-
})
334+
@RabbitListener(id = "third", queues = "class1")
335+
@RabbitListener(id = "fourth", queues = "class2")
340336
static class ClassLevelListenersBean {
341337

342338
@RabbitHandler

src/reference/asciidoc/amqp.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2851,7 +2851,6 @@ This means that the annotation can appear on the same annotated element (method
28512851
In this case, a separate listener container is created for each annotation, each of which invokes the same listener
28522852
`@Bean`.
28532853
Repeatable annotations can be used with Java 8 or above.
2854-
When using Java 7 or earlier, you can achieve the same effect by using the `@RabbitListeners` "`container`" annotation, with an array of `@RabbitListener` annotations.
28552854

28562855
====== Proxy `@RabbitListener` and Generics
28572856

0 commit comments

Comments
 (0)