diff --git a/.idea/inspectionProfiles/Druid.xml b/.idea/inspectionProfiles/Druid.xml
index 5d889a5af5dd..d4aeeb2afd8e 100644
--- a/.idea/inspectionProfiles/Druid.xml
+++ b/.idea/inspectionProfiles/Druid.xml
@@ -104,6 +104,12 @@
+
+
+
+
+
+
diff --git a/.idea/scopes/NonGeneratedFiles.xml b/.idea/scopes/NonGeneratedFiles.xml
new file mode 100644
index 000000000000..22375373e966
--- /dev/null
+++ b/.idea/scopes/NonGeneratedFiles.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/api/src/main/java/io/druid/guice/JsonConfigProvider.java b/api/src/main/java/io/druid/guice/JsonConfigProvider.java
index f9017af2ff9f..f91e7ca0fc12 100644
--- a/api/src/main/java/io/druid/guice/JsonConfigProvider.java
+++ b/api/src/main/java/io/druid/guice/JsonConfigProvider.java
@@ -48,7 +48,7 @@
*
Implementation
*
* The state of {@code } is defined by the value of the property {@code propertyBase}.
- * This value is a json structure, decoded via {@link JsonConfigurator#configurate(java.util.Properties, String, Class)}.
+ * This value is a json structure, decoded via {@link JsonConfigurator#configurate(Properties, String, Class)}.
*
*
* An example might be if DruidServerConfig.class were
diff --git a/api/src/main/java/io/druid/guice/LifecycleModule.java b/api/src/main/java/io/druid/guice/LifecycleModule.java
index eb65d7c2e284..36af8ede8096 100644
--- a/api/src/main/java/io/druid/guice/LifecycleModule.java
+++ b/api/src/main/java/io/druid/guice/LifecycleModule.java
@@ -49,8 +49,8 @@ public class LifecycleModule implements Module
* scope. That is, they are generally eagerly loaded because the loading operation will produce some beneficial
* side-effect even if nothing actually directly depends on the instance.
*
- * This mechanism exists to allow the {@link io.druid.java.util.common.lifecycle.Lifecycle} to be the primary entry point from the injector, not to
- * auto-register things with the {@link io.druid.java.util.common.lifecycle.Lifecycle}. It is also possible to just bind things eagerly with Guice,
+ * This mechanism exists to allow the {@link Lifecycle} to be the primary entry point from the injector, not to
+ * auto-register things with the {@link Lifecycle}. It is also possible to just bind things eagerly with Guice,
* it is not clear which is actually the best approach. This is more explicit, but eager bindings inside of modules
* is less error-prone.
*
@@ -70,8 +70,8 @@ public static void register(Binder binder, Class> clazz)
* scope. That is, they are generally eagerly loaded because the loading operation will produce some beneficial
* side-effect even if nothing actually directly depends on the instance.
*
- * This mechanism exists to allow the {@link io.druid.java.util.common.lifecycle.Lifecycle} to be the primary entry point from the injector, not to
- * auto-register things with the {@link io.druid.java.util.common.lifecycle.Lifecycle}. It is also possible to just bind things eagerly with Guice,
+ * This mechanism exists to allow the {@link Lifecycle} to be the primary entry point from the injector, not to
+ * auto-register things with the {@link Lifecycle}. It is also possible to just bind things eagerly with Guice,
* it is not clear which is actually the best approach. This is more explicit, but eager bindings inside of modules
* is less error-prone.
*
@@ -92,8 +92,8 @@ public static void register(Binder binder, Class> clazz, Annotation annotation
* scope. That is, they are generally eagerly loaded because the loading operation will produce some beneficial
* side-effect even if nothing actually directly depends on the instance.
*
- * This mechanism exists to allow the {@link io.druid.java.util.common.lifecycle.Lifecycle} to be the primary entry point from the injector, not to
- * auto-register things with the {@link io.druid.java.util.common.lifecycle.Lifecycle}. It is also possible to just bind things eagerly with Guice,
+ * This mechanism exists to allow the {@link Lifecycle} to be the primary entry point from the injector, not to
+ * auto-register things with the {@link Lifecycle}. It is also possible to just bind things eagerly with Guice,
* it is not clear which is actually the best approach. This is more explicit, but eager bindings inside of modules
* is less error-prone.
*
@@ -107,15 +107,15 @@ public static void register(Binder binder, Class> clazz, Class extends Annot
}
/**
- * Registers a key to instantiate eagerly. {@link com.google.inject.Key}s mentioned here will be pulled out of
+ * Registers a key to instantiate eagerly. {@link Key}s mentioned here will be pulled out of
* the injector with an injector.getInstance() call when the lifecycle is created.
*
* Eagerly loaded classes will *not* be automatically added to the Lifecycle unless they are bound to the proper
* scope. That is, they are generally eagerly loaded because the loading operation will produce some beneficial
* side-effect even if nothing actually directly depends on the instance.
*
- * This mechanism exists to allow the {@link io.druid.java.util.common.lifecycle.Lifecycle} to be the primary entry point
- * from the injector, not to auto-register things with the {@link io.druid.java.util.common.lifecycle.Lifecycle}. It is
+ * This mechanism exists to allow the {@link Lifecycle} to be the primary entry point
+ * from the injector, not to auto-register things with the {@link Lifecycle}. It is
* also possible to just bind things eagerly with Guice, it is not clear which is actually the best approach.
* This is more explicit, but eager bindings inside of modules is less error-prone.
*
diff --git a/api/src/main/java/io/druid/guice/ManageLifecycle.java b/api/src/main/java/io/druid/guice/ManageLifecycle.java
index 4256467d7f6f..e062aa3994b4 100644
--- a/api/src/main/java/io/druid/guice/ManageLifecycle.java
+++ b/api/src/main/java/io/druid/guice/ManageLifecycle.java
@@ -29,7 +29,7 @@
/**
* Marks the object to be managed by {@link io.druid.java.util.common.lifecycle.Lifecycle}
*
- * This Scope gets defined by {@link io.druid.guice.LifecycleModule}
+ * This Scope gets defined by {@link LifecycleModule}
*/
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
diff --git a/api/src/main/java/io/druid/guice/ManageLifecycleLast.java b/api/src/main/java/io/druid/guice/ManageLifecycleLast.java
index e542ad10c5e6..ff88784898a9 100644
--- a/api/src/main/java/io/druid/guice/ManageLifecycleLast.java
+++ b/api/src/main/java/io/druid/guice/ManageLifecycleLast.java
@@ -29,7 +29,7 @@
/**
* Marks the object to be managed by {@link io.druid.java.util.common.lifecycle.Lifecycle} and set to be on Stage.LAST
*
- * This Scope gets defined by {@link io.druid.guice.LifecycleModule}
+ * This Scope gets defined by {@link LifecycleModule}
*/
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
diff --git a/api/src/main/java/io/druid/guice/PolyBind.java b/api/src/main/java/io/druid/guice/PolyBind.java
index f6466e693654..76991f248d9e 100644
--- a/api/src/main/java/io/druid/guice/PolyBind.java
+++ b/api/src/main/java/io/druid/guice/PolyBind.java
@@ -69,7 +69,7 @@ public static ScopedBindingBuilder createChoice(
}
/**
- * @deprecated use {@link #createChoiceWithDefault(com.google.inject.Binder, String, com.google.inject.Key, String)}
+ * @deprecated use {@link #createChoiceWithDefault(Binder, String, Key, String)}
* instead. {@code defaultKey} argument is ignored.
*/
@Deprecated
diff --git a/api/src/main/java/io/druid/timeline/DataSegmentUtils.java b/api/src/main/java/io/druid/timeline/DataSegmentUtils.java
index 357892a776d8..242c432bc182 100644
--- a/api/src/main/java/io/druid/timeline/DataSegmentUtils.java
+++ b/api/src/main/java/io/druid/timeline/DataSegmentUtils.java
@@ -67,8 +67,7 @@ public Interval apply(String identifier)
*
* @param dataSource the dataSource corresponding to this identifier
* @param identifier segment identifier
- * @return a {@link io.druid.timeline.DataSegmentUtils.SegmentIdentifierParts} object if the identifier could be
- * parsed, null otherwise
+ * @return a {@link DataSegmentUtils.SegmentIdentifierParts} object if the identifier could be parsed, null otherwise
*/
public static SegmentIdentifierParts valueOf(String dataSource, String identifier)
{
diff --git a/aws-common/src/main/java/io/druid/common/aws/ConfigDrivenAwsCredentialsConfigProvider.java b/aws-common/src/main/java/io/druid/common/aws/ConfigDrivenAwsCredentialsConfigProvider.java
index f0553c5003cd..8ec52378078e 100644
--- a/aws-common/src/main/java/io/druid/common/aws/ConfigDrivenAwsCredentialsConfigProvider.java
+++ b/aws-common/src/main/java/io/druid/common/aws/ConfigDrivenAwsCredentialsConfigProvider.java
@@ -20,6 +20,7 @@
package io.druid.common.aws;
import com.amazonaws.AmazonClientException;
+import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.google.common.base.Strings;
@@ -32,10 +33,10 @@ public ConfigDrivenAwsCredentialsConfigProvider(AWSCredentialsConfig config) {
}
@Override
- public com.amazonaws.auth.AWSCredentials getCredentials()
+ public AWSCredentials getCredentials()
{
if (!Strings.isNullOrEmpty(config.getAccessKey()) && !Strings.isNullOrEmpty(config.getSecretKey())) {
- return new com.amazonaws.auth.AWSCredentials() {
+ return new AWSCredentials() {
@Override
public String getAWSAccessKeyId() {
return config.getAccessKey();
diff --git a/aws-common/src/main/java/io/druid/common/aws/LazyFileSessionCredentialsProvider.java b/aws-common/src/main/java/io/druid/common/aws/LazyFileSessionCredentialsProvider.java
index 297efae8e89c..ccab7ed31456 100644
--- a/aws-common/src/main/java/io/druid/common/aws/LazyFileSessionCredentialsProvider.java
+++ b/aws-common/src/main/java/io/druid/common/aws/LazyFileSessionCredentialsProvider.java
@@ -19,6 +19,7 @@
package io.druid.common.aws;
+import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
public class LazyFileSessionCredentialsProvider implements AWSCredentialsProvider
@@ -42,7 +43,7 @@ private FileSessionCredentialsProvider getUnderlyingProvider() {
}
@Override
- public com.amazonaws.auth.AWSCredentials getCredentials()
+ public AWSCredentials getCredentials()
{
return getUnderlyingProvider().getCredentials();
}
diff --git a/bytebuffer-collections/src/main/java/io/druid/collections/spatial/split/GutmanSplitStrategy.java b/bytebuffer-collections/src/main/java/io/druid/collections/spatial/split/GutmanSplitStrategy.java
index fb425f46e100..5dbdb2742d77 100755
--- a/bytebuffer-collections/src/main/java/io/druid/collections/spatial/split/GutmanSplitStrategy.java
+++ b/bytebuffer-collections/src/main/java/io/druid/collections/spatial/split/GutmanSplitStrategy.java
@@ -53,13 +53,13 @@ public boolean needToSplit(Node node)
*
* Algorithm Split. Divide a set of M+1 index entries into two groups.
*
- * S1. [Pick first entry for each group]. Apply Algorithm {@link #pickSeeds(java.util.List)} to choose
+ * S1. [Pick first entry for each group]. Apply Algorithm {@link #pickSeeds(List)} to choose
* two entries to be the first elements of the groups. Assign each to a group.
*
* S2. [Check if done]. If all entries have been assigned, stop. If one group has so few entries that all the rest
* must be assigned to it in order for it to have the minimum number m, assign them and stop.
*
- * S3. [Select entry to assign]. Invoke Algorithm {@link #pickNext(java.util.List, Node[])}
+ * S3. [Select entry to assign]. Invoke Algorithm {@link #pickNext(List, Node[])}
* to choose the next entry to assign. Add it to the group whose covering rectangle will have to be enlarged least to
* accommodate it. Resolve ties by adding the entry to the group smaller area, then to the one with fewer entries, then
* to either. Repeat from S2.
diff --git a/bytebuffer-collections/src/test/java/io/druid/collections/TestIntegerSet.java b/bytebuffer-collections/src/test/java/io/druid/collections/TestIntegerSet.java
index a837bd972b26..1bdfbe284b4a 100755
--- a/bytebuffer-collections/src/test/java/io/druid/collections/TestIntegerSet.java
+++ b/bytebuffer-collections/src/test/java/io/druid/collections/TestIntegerSet.java
@@ -189,7 +189,7 @@ public void testIntOverflow() throws IllegalAccessException, InstantiationExcept
IntegerSet integerSet = IntegerSet.wrap(wrappedBitmap);
integerSet.add(Integer.MAX_VALUE + 1);
}
- catch (java.lang.IllegalArgumentException ex) {
+ catch (IllegalArgumentException ex) {
e = ex;
}
Assert.assertNotNull(e);
diff --git a/common/src/main/java/io/druid/common/config/Log4jShutdown.java b/common/src/main/java/io/druid/common/config/Log4jShutdown.java
index fc30acfe572a..a7a2b5507370 100644
--- a/common/src/main/java/io/druid/common/config/Log4jShutdown.java
+++ b/common/src/main/java/io/druid/common/config/Log4jShutdown.java
@@ -21,6 +21,7 @@
import com.google.common.base.Throwables;
import io.druid.java.util.common.ISE;
+import org.apache.logging.log4j.core.LifeCycle;
import org.apache.logging.log4j.core.util.Cancellable;
import org.apache.logging.log4j.core.util.ShutdownCallbackRegistry;
@@ -29,7 +30,7 @@
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.atomic.AtomicBoolean;
-public class Log4jShutdown implements ShutdownCallbackRegistry, org.apache.logging.log4j.core.LifeCycle
+public class Log4jShutdown implements ShutdownCallbackRegistry, LifeCycle
{
private static final long SHUTDOWN_WAIT_TIMEOUT = 60000;
diff --git a/common/src/main/java/io/druid/common/utils/VMUtils.java b/common/src/main/java/io/druid/common/utils/VMUtils.java
index 1f09ede3bf7a..530f56a23814 100644
--- a/common/src/main/java/io/druid/common/utils/VMUtils.java
+++ b/common/src/main/java/io/druid/common/utils/VMUtils.java
@@ -49,9 +49,8 @@ public static long safeGetThreadCpuTime()
*
* @return total CPU time for the current thread in nanoseconds.
*
- * @throws java.lang.UnsupportedOperationException if the Java
- * virtual machine does not support CPU time measurement for
- * the current thread.
+ * @throws UnsupportedOperationException if the Java virtual machine does not support CPU time measurement for
+ * the current thread.
*/
public static long getCurrentThreadCpuTime()
{
diff --git a/extendedset/src/main/java/io/druid/extendedset/intset/ConciseSet.java b/extendedset/src/main/java/io/druid/extendedset/intset/ConciseSet.java
index d859c77e74cd..4f28892e7258 100755
--- a/extendedset/src/main/java/io/druid/extendedset/intset/ConciseSet.java
+++ b/extendedset/src/main/java/io/druid/extendedset/intset/ConciseSet.java
@@ -25,6 +25,7 @@
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
+import java.io.Serializable;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
@@ -61,7 +62,7 @@
* @author Alessandro Colantonio
* @version $Id$
*/
-public class ConciseSet extends AbstractIntSet implements java.io.Serializable
+public class ConciseSet extends AbstractIntSet implements Serializable
{
/**
* generated serial ID
diff --git a/extendedset/src/main/java/io/druid/extendedset/intset/ImmutableConciseSet.java b/extendedset/src/main/java/io/druid/extendedset/intset/ImmutableConciseSet.java
index 34e82974a77a..6347c53f30d6 100755
--- a/extendedset/src/main/java/io/druid/extendedset/intset/ImmutableConciseSet.java
+++ b/extendedset/src/main/java/io/druid/extendedset/intset/ImmutableConciseSet.java
@@ -21,6 +21,7 @@
import com.google.common.collect.UnmodifiableIterator;
import com.google.common.primitives.Ints;
import io.druid.extendedset.utilities.IntList;
+import org.roaringbitmap.IntIterator;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
@@ -1000,7 +1001,7 @@ public WordIterator newWordIterator()
return new WordIterator();
}
- public class WordIterator implements org.roaringbitmap.IntIterator, Cloneable
+ public class WordIterator implements IntIterator, Cloneable
{
private int startIndex;
private int wordsWalked;
diff --git a/extensions-contrib/ambari-metrics-emitter/src/main/java/io/druid/emitter/ambari/metrics/SendAllTimelineEventConverter.java b/extensions-contrib/ambari-metrics-emitter/src/main/java/io/druid/emitter/ambari/metrics/SendAllTimelineEventConverter.java
index 219bc04ec376..8d7a02f2c401 100644
--- a/extensions-contrib/ambari-metrics-emitter/src/main/java/io/druid/emitter/ambari/metrics/SendAllTimelineEventConverter.java
+++ b/extensions-contrib/ambari-metrics-emitter/src/main/java/io/druid/emitter/ambari/metrics/SendAllTimelineEventConverter.java
@@ -30,7 +30,7 @@
import org.apache.hadoop.metrics2.sink.timeline.TimelineMetric;
/**
- * Emits all the events instance of {@link com.metamx.emitter.service.ServiceMetricEvent}.
+ * Emits all the events instance of {@link ServiceMetricEvent}.
*
* All the dimensions will be retained and lexicographically order using dimensions name.
*
diff --git a/extensions-contrib/cassandra-storage/src/main/java/io/druid/storage/cassandra/CassandraDruidModule.java b/extensions-contrib/cassandra-storage/src/main/java/io/druid/storage/cassandra/CassandraDruidModule.java
index 5597e384f546..a3f61a07f9dc 100644
--- a/extensions-contrib/cassandra-storage/src/main/java/io/druid/storage/cassandra/CassandraDruidModule.java
+++ b/extensions-contrib/cassandra-storage/src/main/java/io/druid/storage/cassandra/CassandraDruidModule.java
@@ -20,6 +20,7 @@
package io.druid.storage.cassandra;
import com.fasterxml.jackson.core.Version;
+import com.fasterxml.jackson.databind.Module;
import com.google.common.collect.ImmutableList;
import com.google.inject.Binder;
import com.google.inject.Key;
@@ -54,10 +55,10 @@ public void configure(Binder binder)
}
@Override
- public List extends com.fasterxml.jackson.databind.Module> getJacksonModules()
+ public List extends Module> getJacksonModules()
{
return ImmutableList.of(
- new com.fasterxml.jackson.databind.Module()
+ new Module()
{
@Override
public String getModuleName()
diff --git a/extensions-contrib/graphite-emitter/src/main/java/io/druid/emitter/graphite/SendAllGraphiteEventConverter.java b/extensions-contrib/graphite-emitter/src/main/java/io/druid/emitter/graphite/SendAllGraphiteEventConverter.java
index 5b91cb8266d8..c443b220d127 100644
--- a/extensions-contrib/graphite-emitter/src/main/java/io/druid/emitter/graphite/SendAllGraphiteEventConverter.java
+++ b/extensions-contrib/graphite-emitter/src/main/java/io/druid/emitter/graphite/SendAllGraphiteEventConverter.java
@@ -31,7 +31,7 @@
import java.util.concurrent.TimeUnit;
/**
- * Emits all the events instance of {@link com.metamx.emitter.service.ServiceMetricEvent}.
+ * Emits all the events instance of {@link ServiceMetricEvent}.
*
* All the dimensions will be retained and lexicographically order using dimensions name.
*