From: Dominik Stadler Date: Tue, 24 May 2016 14:17:52 +0000 (+0000) Subject: Upgrade to FindBugs 3.0.1 and add some findbugs-excludes X-Git-Tag: REL_3_15_BETA2~226 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=79dafee3f3a58426866c741b36a58becc688b051;p=poi.git 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 --- diff --git a/build.xml b/build.xml index 8f4bb29ce4..e215e26543 100644 --- a/build.xml +++ b/build.xml @@ -200,8 +200,8 @@ under the License. - - + + @@ -528,6 +528,7 @@ under the License. + @@ -2017,12 +2018,15 @@ under the License. - - + + + + + @@ -2046,9 +2050,9 @@ under the License. @@ -2062,14 +2066,14 @@ under the License. + src="http://prdownloads.sourceforge.net/findbugs/findbugs-noUpdateChecks-3.0.1.zip?download" + dest="${main.lib}/findbugs-noUpdateChecks-3.0.1.zip"/> - - + 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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#() @ use DecimalFormatSymbols.getInstance() java.text.DecimalFormatSymbols#(java.util.Locale) @ use DecimalFormatSymbols.getInstance()