Skip to content

Commit

Permalink
Suppress FB warning
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotn committed Mar 27, 2024
1 parent 8525300 commit a2660c3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

import jakarta.enterprise.inject.spi.Prioritized;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

/**
* A subclass of {@link MockBean} implementing {@link Prioritized} hence allowing for globally enabled alternatives.
* Used instead of {@link MockBean} if user specified {@link MockBean.Builder#priority(int)}.
Expand All @@ -16,6 +18,7 @@ class MockBeanWithPriority<T> extends MockBean<T> implements Prioritized {

private final int priority;

@SuppressFBWarnings(value = "CT_CONSTRUCTOR_THROW", justification = "This is just a helper class for testing. Plus finalizer pattern is pretty much dead since deprecation in Java 9.")
MockBeanWithPriority(Class<?> beanClass, Set<Class<? extends Annotation>> stereotypes, boolean alternative,
boolean selectForSyntheticBeanArchive, int priority, String name,
Set<Annotation> qualifiers, Set<Type> types, Class<? extends Annotation> scope,
Expand Down

0 comments on commit a2660c3

Please sign in to comment.