From b682e22497e7577fee64d5ae4699edef76de1e6a Mon Sep 17 00:00:00 2001 From: Peter Lawrey Date: Wed, 10 Jan 2024 18:28:23 +0000 Subject: [PATCH] Fix a duplicate implements --- .../testframework/internal/VanillaExceptionTracker.java | 2 +- .../internal/function/VanillaNamedConsumer.java | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/openhft/chronicle/testframework/internal/VanillaExceptionTracker.java b/src/main/java/net/openhft/chronicle/testframework/internal/VanillaExceptionTracker.java index 324a663..66b87ea 100644 --- a/src/main/java/net/openhft/chronicle/testframework/internal/VanillaExceptionTracker.java +++ b/src/main/java/net/openhft/chronicle/testframework/internal/VanillaExceptionTracker.java @@ -19,7 +19,7 @@ * @param The class used to represent thrown exceptions */ @SuppressWarnings("deprecation") -public final class VanillaExceptionTracker implements ExceptionTracker, net.openhft.chronicle.testframework.internal.ExceptionTracker { +public final class VanillaExceptionTracker implements ExceptionTracker { private static final Logger LOGGER = LoggerFactory.getLogger(VanillaExceptionTracker.class); diff --git a/src/main/java/net/openhft/chronicle/testframework/internal/function/VanillaNamedConsumer.java b/src/main/java/net/openhft/chronicle/testframework/internal/function/VanillaNamedConsumer.java index 0a211e2..b4acf77 100644 --- a/src/main/java/net/openhft/chronicle/testframework/internal/function/VanillaNamedConsumer.java +++ b/src/main/java/net/openhft/chronicle/testframework/internal/function/VanillaNamedConsumer.java @@ -1,7 +1,6 @@ package net.openhft.chronicle.testframework.internal.function; import net.openhft.chronicle.testframework.function.NamedConsumer; -import org.jetbrains.annotations.NotNull; import java.util.function.Consumer; @@ -12,8 +11,8 @@ public final class VanillaNamedConsumer implements NamedConsumer { private final Consumer consumer; private final String name; - public VanillaNamedConsumer(@NotNull final Consumer consumer, - @NotNull final String name) { + public VanillaNamedConsumer(final Consumer consumer, + final String name) { this.consumer = requireNonNull(consumer); this.name = requireNonNull(name); } @@ -24,7 +23,7 @@ public void accept(T t) { } @Override - public @NotNull String name() { + public String name() { return name; }