Remove Invalid Deprecation Suppressions

Resolves https://github.com/spring-projects/spring-amqp/issues/1418

`Sample.stop(Timer)` is no longer deprecated.
This commit is contained in:
Gary Russell
2022-03-07 12:47:42 -05:00
parent a3aedc6707
commit ad17638479
2 changed files with 2 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ ext {
log4jVersion = '2.17.1'
logbackVersion = '1.2.3'
lz4Version = '1.8.0'
micrometerVersion = '2.0.0-M1'
micrometerVersion = '2.0.0-SNAPSHOT'
mockitoVersion = '3.11.2'
rabbitmqStreamVersion = '0.4.0'
rabbitmqVersion = project.hasProperty('rabbitmqVersion') ? project.rabbitmqVersion : '5.13.1'
@@ -382,6 +382,7 @@ project('spring-rabbit') {
optionalApi "ch.qos.logback:logback-classic:$logbackVersion"
optionalApi 'org.apache.logging.log4j:log4j-core'
optionalApi "io.micrometer:micrometer-core:$micrometerVersion"
optionalApi "io.micrometer:micrometer-binders:$micrometerVersion"
// Spring Data projection message binding support
optionalApi ("org.springframework.data:spring-data-commons:$springDataCommonsVersion") {
exclude group: 'org.springframework'

View File

@@ -2139,7 +2139,6 @@ public abstract class AbstractMessageListenerContainer extends RabbitAccessor
return Timer.start(this.registry);
}
@SuppressWarnings("deprecation")
void success(Object sample, String queue) {
Timer timer = this.timers.get(queue + "none");
if (timer == null) {
@@ -2148,7 +2147,6 @@ public abstract class AbstractMessageListenerContainer extends RabbitAccessor
((Sample) sample).stop(timer);
}
@SuppressWarnings("deprecation")
void failure(Object sample, String queue, String exception) {
Timer timer = this.timers.get(queue + exception);
if (timer == null) {