Deactivate Forbidden apis check again

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873047 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2020-01-22 21:43:14 +00:00
parent e46ad7452c
commit 01e30dcd8f
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ import java.util.Map;
import java.util.Set;
import org.apache.poi.util.Internal;
import org.apache.poi.util.SuppressForbidden;
import org.mockito.internal.matchers.apachecommons.ReflectionEquals;
/**
@ -120,6 +121,7 @@ public final class POITestCase {
* Only use this method in test cases!!!
*/
@SuppressWarnings({"unused", "unchecked"})
@SuppressForbidden("For test usage only")
public static <R,T> R getFieldValue(final Class<? super T> clazz, final T instance, final Class<R> fieldType, final String fieldName) {
assertTrue("Reflection of private fields is only allowed for POI classes.", clazz.getName().startsWith("org.apache.poi."));
try {