File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
main/java/org/springframework/kafka/support/micrometer
test/java/org/springframework/kafka/support/micrometer Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2020 the original author or authors.
2+ * Copyright 2020-2022 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -91,7 +91,6 @@ public Object start() {
9191 * @param sample the sample.
9292 * @see #start()
9393 */
94- @ SuppressWarnings ("deprecation" )
9594 public void success (Object sample ) {
9695 Timer timer = this .meters .get (NONE_EXCEPTION_METERS_KEY );
9796 if (timer != null ) {
@@ -105,7 +104,6 @@ public void success(Object sample) {
105104 * @param exception the exception name.
106105 * @see #start()
107106 */
108- @ SuppressWarnings ("deprecation" )
109107 public void failure (Object sample , String exception ) {
110108 Timer timer = this .meters .get (exception );
111109 if (timer == null ) {
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2020 the original author or authors.
2+ * Copyright 2020-2022 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
4242 */
4343public class MicrometerHolderTests {
4444
45- @ SuppressWarnings ({ "unchecked" , "deprecation" } )
45+ @ SuppressWarnings ("unchecked" )
4646 @ Test
4747 public void testMicrometerHolderRecordSuccessWorksGracefullyAfterDestroy () {
4848 MeterRegistry meterRegistry = new SimpleMeterRegistry ();
You can’t perform that action at this time.
0 commit comments