File tree 2 files changed +3
-5
lines changed
main/java/org/springframework/kafka/support/micrometer
test/java/org/springframework/kafka/support/micrometer 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2020 the original author or authors.
2
+ * Copyright 2020-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -91,7 +91,6 @@ public Object start() {
91
91
* @param sample the sample.
92
92
* @see #start()
93
93
*/
94
- @ SuppressWarnings ("deprecation" )
95
94
public void success (Object sample ) {
96
95
Timer timer = this .meters .get (NONE_EXCEPTION_METERS_KEY );
97
96
if (timer != null ) {
@@ -105,7 +104,6 @@ public void success(Object sample) {
105
104
* @param exception the exception name.
106
105
* @see #start()
107
106
*/
108
- @ SuppressWarnings ("deprecation" )
109
107
public void failure (Object sample , String exception ) {
110
108
Timer timer = this .meters .get (exception );
111
109
if (timer == null ) {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2020 the original author or authors.
2
+ * Copyright 2020-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
42
42
*/
43
43
public class MicrometerHolderTests {
44
44
45
- @ SuppressWarnings ({ "unchecked" , "deprecation" } )
45
+ @ SuppressWarnings ("unchecked" )
46
46
@ Test
47
47
public void testMicrometerHolderRecordSuccessWorksGracefullyAfterDestroy () {
48
48
MeterRegistry meterRegistry = new SimpleMeterRegistry ();
You can’t perform that action at this time.
0 commit comments