mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
* Fix dependency analyze warnings Update the maven dependency plugin to the latest version and fix all warnings for unused declared and used undeclared dependencies in the compile scope. Added new travis job to add the check to CI. Also fixed some source code files to use the correct packages for their imports and updated druid-forbidden-apis to prevent regressions. * Address review comments * Adjust scope for org.glassfish.jaxb:jaxb-runtime * Fix dependencies for hdfs-storage * Consolidate netty4 versions
51 lines
4.8 KiB
Plaintext
51 lines
4.8 KiB
Plaintext
com.fasterxml.jackson.databind.ObjectMapper#reader(com.fasterxml.jackson.core.type.TypeReference) @ Use ObjectMapper#readerFor instead
|
|
com.fasterxml.jackson.databind.ObjectMapper#reader(com.fasterxml.jackson.databind.JavaType) @ Use ObjectMapper#readerFor instead
|
|
com.fasterxml.jackson.databind.ObjectMapper#reader(java.lang.Class) @ Use ObjectMapper#readerFor instead
|
|
com.google.common.base.Charsets @ Use java.nio.charset.StandardCharsets instead
|
|
com.google.common.collect.Iterators#emptyIterator() @ Use java.util.Collections#emptyIterator()
|
|
com.google.common.collect.Lists#newArrayList() @ Create java.util.ArrayList directly
|
|
com.google.common.collect.Lists#newLinkedList() @ Use ArrayList or ArrayDeque instead
|
|
com.google.common.collect.Lists#newLinkedList(java.lang.Iterable) @ Use ArrayList or ArrayDeque instead
|
|
com.google.common.collect.MapMaker @ Create java.util.concurrent.ConcurrentHashMap directly
|
|
com.google.common.collect.Maps#newConcurrentMap() @ Create java.util.concurrent.ConcurrentHashMap directly
|
|
com.google.common.collect.Maps#newHashMap() @ Create java.util.HashMap directly
|
|
com.google.common.collect.Maps#newHashMap(java.util.Map) @ Create java.util.HashMap directly
|
|
com.google.common.collect.Maps#newTreeMap() @ Create java.util.TreeMap directly
|
|
com.google.common.collect.Maps#newTreeMap(java.util.Comparator) @ Create java.util.TreeMap directly
|
|
com.google.common.collect.Maps#newTreeMap(java.util.SortedMap) @ Create java.util.TreeMap directly
|
|
com.google.common.collect.Queues#newArrayDeque() @ Create java.util.ArrayDeque directly
|
|
com.google.common.collect.Queues#newConcurrentLinkedQueue() @ Create java.util.concurrent.ConcurrentLinkedQueue directly
|
|
com.google.common.collect.Queues#newLinkedBlockingQueue() @ Create java.util.concurrent.LinkedBlockingQueue directly
|
|
com.google.common.collect.Sets#newHashSet() @ Create java.util.HashSet directly
|
|
com.google.common.collect.Sets#newLinkedHashSet() @ Create java.util.LinkedHashSet directly
|
|
com.google.common.collect.Sets#newTreeSet() @ Create java.util.TreeSet directly
|
|
com.google.common.collect.Sets#newTreeSet(java.util.Comparator) @ Create java.util.TreeSet directly
|
|
com.google.common.util.concurrent.MoreExecutors#sameThreadExecutor() @ Use org.apache.druid.java.util.common.concurrent.Execs#directExecutor()
|
|
com.google.common.util.concurrent.MoreExecutors#newDirectExecutorService() @ Use org.apache.druid.java.util.common.concurrent.Execs#directExecutor()
|
|
com.google.common.util.concurrent.MoreExecutors#directExecutor() @ Use org.apache.druid.java.util.common.concurrent.Execs#directExecutor()
|
|
com.google.common.util.concurrent.Futures#transform(com.google.common.util.concurrent.ListenableFuture, com.google.common.util.concurrent.AsyncFunction) @ Use org.apache.druid.java.util.common.concurrent.ListenableFutures#transformAsync
|
|
java.io.File#toURL() @ Use java.io.File#toURI() and java.net.URI#toURL() instead
|
|
java.lang.String#matches(java.lang.String) @ Use startsWith(), endsWith(), contains(), or compile and cache a Pattern explicitly
|
|
java.lang.String#replace(java.lang.CharSequence,java.lang.CharSequence) @ Use one of the appropriate methods in StringUtils instead
|
|
java.lang.String#replaceAll(java.lang.String,java.lang.String) @ Use one of the appropriate methods in StringUtils instead, or compile and cache a Pattern explicitly
|
|
java.lang.String#replaceFirst(java.lang.String,java.lang.String) @ Use String.indexOf() and substring methods, or compile and cache a Pattern explicitly
|
|
java.util.LinkedList @ Use ArrayList or ArrayDeque instead
|
|
java.util.Random#<init>() @ Use ThreadLocalRandom.current() or the constructor with a seed (the latter in tests only!)
|
|
java.lang.Math#random() @ Use ThreadLocalRandom.current()
|
|
java.util.regex.Pattern#matches(java.lang.String,java.lang.CharSequence) @ Use String.startsWith(), endsWith(), contains(), or compile and cache a Pattern explicitly
|
|
org.apache.commons.io.FileUtils#getTempDirectory() @ Use org.junit.rules.TemporaryFolder for tests instead
|
|
java.lang.Class#getCanonicalName() @ Class.getCanonicalName can return null for anonymous types, use Class.getName instead.
|
|
com.google.common.base.Objects#firstNonNull(java.lang.Object, java.lang.Object) @ Use org.apache.druid.common.guava.GuavaUtils#firstNonNull(java.lang.Object, java.lang.Object) instead (probably... the GuavaUtils method return object is nullable)
|
|
|
|
@defaultMessage Use Locale.ENGLISH
|
|
com.ibm.icu.text.DateFormatSymbols#<init>()
|
|
com.ibm.icu.text.SimpleDateFormat#<init>()
|
|
com.ibm.icu.text.SimpleDateFormat#<init>(java.lang.String)
|
|
|
|
@defaultMessage For performance reasons, use the utf8Base64 / encodeBase64 / encodeBase64String / decodeBase64 / decodeBase64String methods in StringUtils
|
|
org.apache.commons.codec.binary.Base64
|
|
com.google.common.io.BaseEncoding.base64
|
|
|
|
@defaultMessage Use com.google.errorprone.annotations.concurrent.GuardedBy
|
|
javax.annotations.concurrent.GuardedBy
|
|
com.amazonaws.annotation.GuardedBy |