Skip to content

Commit

Permalink
Merge pull request #47 from OpenHFT/exceptionTracker2
Browse files Browse the repository at this point in the history
Fix a duplicate implements
  • Loading branch information
peter-lawrey authored Jan 10, 2024
2 parents 6a6fda2 + b682e22 commit ef6b087
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @param <T> The class used to represent thrown exceptions
*/
@SuppressWarnings("deprecation")
public final class VanillaExceptionTracker<T> implements ExceptionTracker<T>, net.openhft.chronicle.testframework.internal.ExceptionTracker<T> {
public final class VanillaExceptionTracker<T> implements ExceptionTracker<T> {

private static final Logger LOGGER = LoggerFactory.getLogger(VanillaExceptionTracker.class);

Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -12,8 +11,8 @@ public final class VanillaNamedConsumer<T> implements NamedConsumer<T> {
private final Consumer<T> consumer;
private final String name;

public VanillaNamedConsumer(@NotNull final Consumer<T> consumer,
@NotNull final String name) {
public VanillaNamedConsumer(final Consumer<T> consumer,
final String name) {
this.consumer = requireNonNull(consumer);
this.name = requireNonNull(name);
}
Expand All @@ -24,7 +23,7 @@ public void accept(T t) {
}

@Override
public @NotNull String name() {
public String name() {
return name;
}

Expand Down

0 comments on commit ef6b087

Please sign in to comment.