Author: fanningpj
Date: Tue Nov 21 21:33:51 2017
New Revision: 1815989
URL: http://svn.apache.org/viewvc?rev=1815989&view=rev
Log:
add forbidden api checks for non-Locale toLowerCase and toUpperCase
Modified:
poi/trunk/src/resources/devtools/forbidden-signatures.txt
Modified: poi/trunk/src/resources/devtools/forbidden-signatures.txt
URL:
http://svn.apache.org/viewvc/poi/trunk/src/resources/devtools/forbidden-signatures.txt?rev=1815989&r1=1815988&r2=1815989&view=diff
==============================================================================
--- poi/trunk/src/resources/devtools/forbidden-signatures.txt (original)
+++ poi/trunk/src/resources/devtools/forbidden-signatures.txt Tue Nov 21
21:33:51 2017
@@ -21,10 +21,10 @@
@defaultMessage POI forbidden APIs
# Locale related interfaces which we want to avoid to not have code which
depends on the locale of the current machine
-java.util.Locale#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.Locale#setDefault(java.util.Locale) @ 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.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
+java.util.Locale#getDefault() @ Do not use methods that depend on the current
Locale, either use Locale.ROOT or let the user define the locale, see class
LocaleUtil for details
+java.util.Locale#setDefault(java.util.Locale) @ Do not use methods that depend
on the current Locale, either use Locale.ROOT or let the user define the
locale, see class LocaleUtil for details
+java.util.TimeZone#getDefault() @ Do not use methods that depend on the
current Locale, either use Locale.ROOT or let the user define the locale, see
class LocaleUtil for details
+java.util.Date#toString() @ Do not use methods that depend on the current
Locale, either use Locale.ROOT or let the user define the locale, see class
LocaleUtil for details
java.text.DecimalFormatSymbols#<init>() @ use
DecimalFormatSymbols.getInstance()
java.text.DecimalFormatSymbols#<init>(java.util.Locale) @ use
DecimalFormatSymbols.getInstance()
@@ -100,6 +100,13 @@ java.util.concurrent.Executors#privilege
java.lang.Character#codePointBefore(char[],int) @ Implicit start offset is
error-prone when the char[] is a buffer and the first chars are random chars
java.lang.Character#codePointAt(char[],int) @ Implicit end offset is
error-prone when the char[] is a buffer and the last chars are random chars
+@defaultMessage specify a locale when using toUpperCase / to LowerCase
+
+#java.lang.Character#toLowerCase(char)
+#java.lang.Character#toUpperCase(char)
+java.lang.String#toLowerCase()
+java.lang.String#toUpperCase()
+
@defaultMessage Only use wait / notify when really needed try to use
concurrency primitives, latches or callbacks instead.
java.lang.Object#wait()
java.lang.Object#wait(long)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]