Skip to content

Commit

Permalink
Remove Invalid Deprecation Suppressions
Browse files Browse the repository at this point in the history
Resolves #1418

`Sample.stop(Timer)` is no longer deprecated.
  • Loading branch information
garyrussell committed Mar 7, 2022
1 parent a3aedc6 commit ad17638
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2139,7 +2139,6 @@ Object start() {
return Timer.start(this.registry);
}

@SuppressWarnings("deprecation")
void success(Object sample, String queue) {
Timer timer = this.timers.get(queue + "none");
if (timer == null) {
Expand All @@ -2148,7 +2147,6 @@ void success(Object sample, String queue) {
((Sample) sample).stop(timer);
}

@SuppressWarnings("deprecation")
void failure(Object sample, String queue, String exception) {
Timer timer = this.timers.get(queue + exception);
if (timer == null) {
Expand Down

0 comments on commit ad17638

Please sign in to comment.