aboutsummaryrefslogtreecommitdiffstats
path: root/src/resources
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2016-05-24 14:17:52 +0000
committerDominik Stadler <centic@apache.org>2016-05-24 14:17:52 +0000
commit79dafee3f3a58426866c741b36a58becc688b051 (patch)
tree4277f04787224922261560028db3116d4cd4c2c5 /src/resources
parentb02a4899f3d82ae0a4df577efa65c1af5556f9b9 (diff)
downloadpoi-79dafee3f3a58426866c741b36a58becc688b051.tar.gz
poi-79dafee3f3a58426866c741b36a58becc688b051.zip
Upgrade to FindBugs 3.0.1 and add some findbugs-excludes
Update to forbiddenapi-checker 2.1, use the newly provided rule-sets and remove things that were applied upstream git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1745366 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/devtools/findbugs-filters.xml60
-rw-r--r--src/resources/devtools/forbidden-signatures.txt4
2 files changed, 60 insertions, 4 deletions
diff --git a/src/resources/devtools/findbugs-filters.xml b/src/resources/devtools/findbugs-filters.xml
index 951201f631..f79feca345 100644
--- a/src/resources/devtools/findbugs-filters.xml
+++ b/src/resources/devtools/findbugs-filters.xml
@@ -26,4 +26,64 @@
<Class name="org.apache.poi.hssf.usermodel.DummyGraphics2d"/>
<Bug code="FI" />
</Match>
+
+ <!-- things that were moved or are named equally on purpose -->
+ <Match>
+ <Class name="org.apache.poi.hssf.extractor.ExcelExtractor"/>
+ <Bug code="Nm" />
+ </Match>
+ <Match>
+ <Class name="org.apache.poi.hssf.record.RecordFormatException"/>
+ <Bug code="Nm" />
+ </Match>
+ <Match>
+ <Class name="org.apache.poi.hssf.record.UnicodeString"/>
+ <Bug code="Nm" />
+ </Match>
+ <Match>
+ <Class name="org.apache.poi.hssf.usermodel.HeaderFooter"/>
+ <Bug code="Nm" />
+ </Match>
+ <Match>
+ <Class name="org.apache.poi.hssf.util.AreaReference"/>
+ <Bug code="Nm" />
+ </Match>
+ <Match>
+ <Class name="org.apache.poi.hssf.util.CellRangeAddress"/>
+ <Bug code="Nm" />
+ </Match>
+ <Match>
+ <Class name="org.apache.poi.hssf.util.CellRangeAddressList"/>
+ <Bug code="Nm" />
+ </Match>
+ <Match>
+ <Class name="org.apache.poi.hssf.util.CellReference"/>
+ <Bug code="Nm" />
+ </Match>
+ <Match>
+ <Class name="org.apache.poi.hssf.util.Region"/>
+ <Bug code="Nm" />
+ </Match>
+ <Match>
+ <Class name="org.apache.poi.hwpf.usermodel.CharacterRun"/>
+ <Bug code="Nm" />
+ </Match>
+ <Match>
+ <Class name="org.apache.poi.sl.usermodel.Hyperlink"/>
+ <Bug code="Nm" />
+ </Match>
+ <Match>
+ <Class name="org.apache.poi.ss.usermodel.Hyperlink"/>
+ <Bug code="Nm" />
+ </Match>
+ <Match>
+ <Class name="org.apache.poi.xssf.model.IndexedUDFFinder"/>
+ <Bug code="Nm" />
+ </Match>
+
+ <!-- named this way on purpose -->
+ <Match>
+ <Class name="org.apache.poi.xdgf.exceptions.XDGFException"/>
+ <Bug code="Nm" />
+ </Match>
</FindBugsFilter> \ No newline at end of file
diff --git a/src/resources/devtools/forbidden-signatures.txt b/src/resources/devtools/forbidden-signatures.txt
index dabcb7691c..54b2856786 100644
--- a/src/resources/devtools/forbidden-signatures.txt
+++ b/src/resources/devtools/forbidden-signatures.txt
@@ -26,10 +26,6 @@ java.util.Locale#setDefault(java.util.Locale) @ Do not use methods that depend o
java.util.TimeZone#getDefault() @ Do not use methods that depend on the current Local, either use Locale.ROOT or let the user define the local, see class LocaleUtil for details
java.util.Date#toString() @ Do not use methods that depend on the current Local, either use Locale.ROOT or let the user define the local, see class LocaleUtil for details
-# Disallow reflection on private object fields/methods
-java.lang.reflect.AccessibleObject#setAccessible(java.lang.reflect.AccessibleObject[], boolean) @ Reflection usage fails with SecurityManagers and likely will not work any more in Java 9
-java.lang.reflect.AccessibleObject#setAccessible(boolean) @ Reflection usage fails with SecurityManagers and likely will not work any more in Java 9
-
java.text.DecimalFormatSymbols#<init>() @ use DecimalFormatSymbols.getInstance()
java.text.DecimalFormatSymbols#<init>(java.util.Locale) @ use DecimalFormatSymbols.getInstance()