diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2020-01-22 21:43:14 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2020-01-22 21:43:14 +0000 |
commit | 01e30dcd8f6b89b9eff70b94e1f911ebd33c5735 (patch) | |
tree | a89341c25a3af4bc7aaeb6b8387f0e8bf4408467 | |
parent | e46ad7452c6abd214029d904a2224d21a82ac1e9 (diff) | |
download | poi-01e30dcd8f6b89b9eff70b94e1f911ebd33c5735.tar.gz poi-01e30dcd8f6b89b9eff70b94e1f911ebd33c5735.zip |
Deactivate Forbidden apis check again
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873047 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/testcases/org/apache/poi/POITestCase.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/POITestCase.java b/src/testcases/org/apache/poi/POITestCase.java index 8848a37695..bda78bcf6d 100644 --- a/src/testcases/org/apache/poi/POITestCase.java +++ b/src/testcases/org/apache/poi/POITestCase.java @@ -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 { |