Skip to content

Commit fb6ee50

Browse files
committed
Add deprecated methods to the CorrelationData.Confirm
Java `record` does not come with getters, so migrating POJO to `record` is not backward compatible
1 parent d87c21c commit fb6ee50

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/CorrelationData.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,16 @@ public String toString() {
130130
*/
131131
public record Confirm(boolean ack, @Nullable String reason) {
132132

133+
@Deprecated(forRemoval = true, since = "4.0")
134+
public boolean isAck() {
135+
return this.ack;
136+
}
137+
138+
@Deprecated(forRemoval = true, since = "4.0")
139+
public @Nullable String getReason() {
140+
return this.reason;
141+
}
142+
133143
}
134144

135145
}

0 commit comments

Comments
 (0)