diff options
author | Dominik Stadler <centic@apache.org> | 2021-11-07 14:59:40 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2021-11-07 14:59:40 +0000 |
commit | 034c95ec55ea4770b02a02466c5c8dacf3329066 (patch) | |
tree | a376feb1fbf48220bc8f5d7641529046c945a69a /src/resources | |
parent | 4e7b994c2516473429ebc23f2b5acec131f60b67 (diff) | |
download | poi-034c95ec55ea4770b02a02466c5c8dacf3329066.tar.gz poi-034c95ec55ea4770b02a02466c5c8dacf3329066.zip |
Add some more forbidden-apis to prefer core JDK classes over Guava and commons-codec
Also prevent java logging from being used inadvertently
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894810 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/devtools/forbidden-signatures.txt | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/src/resources/devtools/forbidden-signatures.txt b/src/resources/devtools/forbidden-signatures.txt index 0ed4e2521b..ce9c56749f 100644 --- a/src/resources/devtools/forbidden-signatures.txt +++ b/src/resources/devtools/forbidden-signatures.txt @@ -141,5 +141,34 @@ javax.xml.bind.DatatypeConverter @defaultMessage don't rely on the threads ContextClassLoader - provide the classloader via load(Class, Classloader)
java.util.ServiceLoader#load(java.lang.Class)
-@defaultMessage use java.nio.charset.StandardCharsets instead
-org.apache.commons.codec.Charsets
\ No newline at end of file +@defaultMessage Use Log4J classes instead
+java.util.logging.**
+
+# taken from https://github.com/apache/solr/blob/main/gradle/validation/forbidden-apis/com.google.guava.guava.all.txt
+@defaultMessage Use corresponding Java 8 functional/streaming interfaces
+com.google.common.base.Function
+com.google.common.base.Joiner
+com.google.common.base.Predicate
+com.google.common.base.Supplier
+
+@defaultMessage Use java.nio.charset.StandardCharsets instead
+com.google.common.base.Charsets
+
+@defaultMessage Use methods in java.util.Objects instead
+com.google.common.base.Objects#equal(java.lang.Object,java.lang.Object)
+com.google.common.base.Objects#hashCode(java.lang.Object[])
+com.google.common.base.Preconditions#checkNotNull(java.lang.Object)
+com.google.common.base.Preconditions#checkNotNull(java.lang.Object,java.lang.Object)
+
+@defaultMessage Use methods in java.util.Comparator instead
+com.google.common.collect.Ordering
+
+
+# taken from https://github.com/apache/solr/blob/main/gradle/validation/forbidden-apis/commons-codec.commons-codec.all.txt
+@defaultMessage Use java.nio.charset.StandardCharsets instead
+org.apache.commons.codec.Charsets
+
+@defaultMessage Use java.util.Base64 instead
+org.apache.commons.codec.binary.Base64
+
+
|