aboutsummaryrefslogtreecommitdiffstats
path: root/src/resources/devtools
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2015-09-07 20:19:50 +0000
committerAndreas Beeker <kiwiwings@apache.org>2015-09-07 20:19:50 +0000
commita3d2eb57ff4ac10ae215b9b7404260103eb6f538 (patch)
tree7b44ec32a7cdd0e0828779c793061ac6a00e4c00 /src/resources/devtools
parentf2e85496125f7fc68f7434244b9d9d5bb026933d (diff)
downloadpoi-a3d2eb57ff4ac10ae215b9b7404260103eb6f538.tar.gz
poi-a3d2eb57ff4ac10ae215b9b7404260103eb6f538.zip
Bug 58326 - Forbidden APIs patches - first set of changes for locale and timezone settings
also includes fixes for - name shadowing - unused deprecated method "getClipRect" in classes extending Graphics2d - HexDump - replaced intermediate String.format calls with custom padding - convert testcases to junit4 - closing resources also tested with an arbitary timezone (PST) and locale (ru) supresses forbidden apis check for - LocaleUtil (the only place where Locale.getDefault() and TimeZone.getDefault() should be called) - Classes using FontMetrics - without the actual text it's difficult to return something sane Some usage of UTC and Locale.ROOT might be still wrong, e.g. in MapiMessage we don't access the extended mapi properties, which might contain the timezone DataFormatter has now a Observable property which need to be observed when custom formats are used and the Locale changes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1701688 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/resources/devtools')
-rw-r--r--src/resources/devtools/forbidden-signatures.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/resources/devtools/forbidden-signatures.txt b/src/resources/devtools/forbidden-signatures.txt
new file mode 100644
index 0000000000..de6afc3378
--- /dev/null
+++ b/src/resources/devtools/forbidden-signatures.txt
@@ -0,0 +1,25 @@
+# (C) Copyright Uwe Schindler (Generics Policeman) and others.
+# Parts of this work are licensed to the Apache Software Foundation (ASF)
+# under one or more contributor license agreements.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# This file contains API signatures which are specific to POI.
+# The goal is to minimize implicit defaults
+
+@ignoreUnresolvable
+@defaultMessage POI forbidden APIs
+
+java.util.Locale#getDefault()
+java.util.Locale#setDefault(java.util.Locale)
+java.util.TimeZone#getDefault() \ No newline at end of file