diff --git a/dev-tools/src/main/resources/forbidden/#all-signatures.txt# b/dev-tools/src/main/resources/forbidden/#all-signatures.txt# deleted file mode 100644 index c3fa24045e2..00000000000 --- a/dev-tools/src/main/resources/forbidden/#all-signatures.txt# +++ /dev/null @@ -1,129 +0,0 @@ -# Licensed to Elasticsearch under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch licenses this file to you 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. - -@defaultMessage Convert to URI -java.net.URL#getPath() -java.net.URL#getFile() - -@defaultMessage Usage of getLocalHost is discouraged -java.net.InetAddress#getLocalHost() - -@defaultMessage Use java.nio.file instead of java.io.File API -java.util.jar.JarFile -java.util.zip.ZipFile -java.io.File -java.io.FileInputStream -java.io.FileOutputStream -java.io.PrintStream#<init>(java.lang.String,java.lang.String) -java.io.PrintWriter#<init>(java.lang.String,java.lang.String) -java.util.Formatter#<init>(java.lang.String,java.lang.String,java.util.Locale) -java.io.RandomAccessFile -java.nio.file.Path#toFile() - -@defaultMessage Don't use deprecated lucene apis -org.apache.lucene.index.DocsEnum -org.apache.lucene.index.DocsAndPositionsEnum -org.apache.lucene.queries.TermFilter -org.apache.lucene.queries.TermsFilter -org.apache.lucene.search.TermRangeFilter -org.apache.lucene.search.NumericRangeFilter -org.apache.lucene.search.PrefixFilter - -java.nio.file.Paths @ Use PathUtils.get instead. -java.nio.file.FileSystems#getDefault() @ use PathUtils.getDefault instead. - -@defaultMessage Specify a location for the temp file/directory instead. -java.nio.file.Files#createTempDirectory(java.lang.String,java.nio.file.attribute.FileAttribute[]) -java.nio.file.Files#createTempFile(java.lang.String,java.lang.String,java.nio.file.attribute.FileAttribute[]) - -@defaultMessage Don't use java serialization - this can break BWC without noticing it -java.io.ObjectOutputStream -java.io.ObjectOutput -java.io.ObjectInputStream -java.io.ObjectInput - -java.nio.file.Files#isHidden(java.nio.file.Path) @ Dependent on the operating system, use FileSystemUtils.isHidden instead - -java.nio.file.Files#getFileStore(java.nio.file.Path) @ Use Environment.getFileStore() instead, impacted by JDK-8034057 -java.nio.file.Files#isWritable(java.nio.file.Path) @ Use Environment.isWritable() instead, impacted by JDK-8034057 - -@defaultMessage Resolve hosts explicitly to the address(es) you want with InetAddress. -java.net.InetSocketAddress#<init>(java.lang.String,int) -java.net.Socket#<init>(java.lang.String,int) -java.net.Socket#<init>(java.lang.String,int,java.net.InetAddress,int) - -@defaultMessage Don't bind to wildcard addresses. Be specific. -java.net.DatagramSocket#<init>() -java.net.DatagramSocket#<init>(int) -java.net.InetSocketAddress#<init>(int) -java.net.MulticastSocket#<init>() -java.net.MulticastSocket#<init>(int) -java.net.ServerSocket#<init>(int) -java.net.ServerSocket#<init>(int,int) - -@defaultMessage use NetworkAddress format/formatAddress to print IP or IP+ports -java.net.InetAddress#toString() -java.net.InetAddress#getHostAddress() -java.net.Inet4Address#getHostAddress() -java.net.Inet6Address#getHostAddress() -java.net.InetSocketAddress#toString() - -@defaultMessage avoid DNS lookups by accident: if you have a valid reason, then @SuppressWarnings with that reason so its completely clear -java.net.InetAddress#getHostName() -java.net.InetAddress#getCanonicalHostName() - -java.net.InetSocketAddress#getHostName() @ Use getHostString() instead, which avoids a DNS lookup - -@defaultMessage avoid adding additional dependencies on Guava -com.google.common.collect.Lists -com.google.common.collect.ImmutableList -com.google.common.base.Objects -com.google.common.base.Predicate -com.google.common.base.Predicates -com.google.common.base.Strings -com.google.common.base.Throwables -com.google.common.collect.Maps -com.google.common.collect.Sets -com.google.common.base.Preconditions -com.google.common.collect.ImmutableSortedSet -com.google.common.collect.Queues -com.google.common.util.concurrent.ListenableFuture -com.google.common.util.concurrent.SettableFuture -com.google.common.util.concurrent.Futures -com.google.common.util.concurrent.MoreExecutors -com.google.common.collect.ImmutableSortedMap -com.google.common.base.Charsets -com.google.common.base.Function -com.google.common.collect.Collections2 -com.google.common.cache.LoadingCache -com.google.common.cache.CacheLoader -com.google.common.collect.Iterables -<<<<<<< HEAD -com.google.common.util.concurrent.UncheckedExecutionException -com.google.common.util.concurrent.AtomicLongMap -com.google.common.primitives.Longs -com.google.common.io.ByteStreams -com.google.common.collect.UnmodifiableIterator -com.google.common.collect.ObjectArrays -com.google.common.collect.Multimap -com.google.common.collect.MultimapBuilder -======= -com.google.common.base.Joiner ->>>>>>> Remove and forbid use of com.google.common.base.Joiner - -@defaultMessage Do not violate java's access system -java.lang.reflect.AccessibleObject#setAccessible(boolean) -java.lang.reflect.AccessibleObject#setAccessible(java.lang.reflect.AccessibleObject[], boolean)