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:
@@ -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'
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user