Skip to content

Commit fd54c53

Browse files
committed
Tweak Javadoc
1 parent 22a1f2c commit fd54c53

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

src/main/java/com/rabbitmq/client/amqp/AddressBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
package com.rabbitmq.client.amqp;
1919

2020
/**
21-
* Builder for a <a href="https://www.rabbitmq.com/docs/amqp#address-v2">AMQP target address
22-
* format v2.</a>
21+
* Builder for a <a href="https://www.rabbitmq.com/docs/amqp#address-v2">AMQP target address format
22+
* v2.</a>
2323
*
2424
* @param <T> the type of object returned by methods, usually the object itself
2525
*/

src/main/java/com/rabbitmq/client/amqp/Consumer.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ interface Context {
8383
* <p>This means the message cannot be processed because it is invalid, the broker can drop it
8484
* or dead-letter it if it is configured.
8585
*
86-
* <p>Annotation keys must start with the <code>x-opt-</code> prefix.
86+
* <p>Application-specific annotation keys must start with the <code>x-opt-</code> prefix.
87+
* Annotation keys the broker understands starts with <code>x-</code>, but not with <code>x-opt-
88+
* </code>.
8789
*
8890
* <p>This maps to the AMQP 1.0 <code>
8991
* modified{delivery-failed = true, undeliverable-here = true}</code> outcome.
@@ -109,7 +111,9 @@ interface Context {
109111
* <p>This means the message has not been processed and the broker can requeue it and deliver it
110112
* to the same or a different consumer.
111113
*
112-
* <p>Annotation keys must start with the <code>x-opt-</code> prefix.
114+
* <p>Application-specific annotation keys must start with the <code>x-opt-</code> prefix.
115+
* Annotation keys the broker understands starts with <code>x-</code>, but not with <code>x-opt-
116+
* </code>.
113117
*
114118
* <p>This maps to the AMQP 1.0 <code>
115119
* modified{delivery-failed = false, undeliverable-here = false}</code> outcome.

src/main/java/com/rabbitmq/client/amqp/impl/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static void checkMessageAnnotations(Map<String, Object> annotations) {
104104
(k, v) -> {
105105
if (!k.startsWith("x-")) {
106106
throw new IllegalArgumentException(
107-
"Message annotation keys must start with 'x-opt-': " + k);
107+
"Message annotation keys must start with 'x-': " + k);
108108
}
109109
});
110110
}

src/test/java/com/rabbitmq/client/amqp/impl/ConsumerOutcomeTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ void init(TestInfo info) {
5656
this.q = TestUtils.name(info);
5757
this.dlx = TestUtils.name(info);
5858
this.dlq = TestUtils.name(info);
59-
60-
// this.connection.
6159
}
6260

6361
@AfterEach

0 commit comments

Comments
 (0)