Follow documented project import order (#137) 138/head
authorChristopher Tubbs <ctubbsii@apache.org>
Fri, 18 Aug 2017 19:23:55 +0000 (15:23 -0400)
committerChristopher Tubbs <ctubbsii@apache.org>
Fri, 18 Aug 2017 19:23:55 +0000 (15:23 -0400)
modules/accumulo/src/main/java/org/apache/fluo/recipes/accumulo/ops/TableOperations.java
modules/core/src/main/java/org/apache/fluo/recipes/core/export/ExportObserverImpl.java
modules/core/src/main/java/org/apache/fluo/recipes/core/map/Update.java
modules/core/src/test/java/org/apache/fluo/recipes/core/common/TestGrouping.java
modules/test/src/test/java/org/apache/fluo/recipes/test/export/AccumuloReplicatorIT.java
pom.xml

index c8d5348..5aaeb57 100644 (file)
@@ -28,8 +28,8 @@ import org.apache.fluo.api.client.FluoFactory;
 import org.apache.fluo.api.config.FluoConfiguration;
 import org.apache.fluo.api.config.SimpleConfiguration;
 import org.apache.fluo.api.data.Bytes;
-import org.apache.fluo.recipes.core.common.TableOptimizations;
 import org.apache.fluo.recipes.core.common.RowRange;
+import org.apache.fluo.recipes.core.common.TableOptimizations;
 import org.apache.fluo.recipes.core.common.TransientRegistry;
 import org.apache.hadoop.io.Text;
 import org.slf4j.Logger;
index c54ecc0..a95125d 100644 (file)
@@ -17,14 +17,13 @@ package org.apache.fluo.recipes.core.export;
 
 import java.util.Iterator;
 
+import com.google.common.collect.Iterators;
 import org.apache.fluo.api.client.TransactionBase;
 import org.apache.fluo.api.data.Bytes;
 import org.apache.fluo.api.data.Column;
 import org.apache.fluo.api.observer.Observer;
 import org.apache.fluo.recipes.core.serialization.SimpleSerializer;
 
-import com.google.common.collect.Iterators;
-
 // This class intentionally package private.
 class ExportObserverImpl<K, V> implements Observer {
 
index 2c0c891..674f367 100644 (file)
@@ -18,9 +18,8 @@ package org.apache.fluo.recipes.core.map;
 import java.util.Iterator;
 import java.util.Optional;
 
-import org.apache.fluo.recipes.core.combine.ChangeObserver.Change;
-
 import com.google.common.collect.Iterators;
+import org.apache.fluo.recipes.core.combine.ChangeObserver.Change;
 
 /**
  * @since 1.0.0
index 4c1d7f7..c690439 100644 (file)
@@ -19,6 +19,7 @@ import java.util.Set;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
+import com.google.common.collect.ImmutableSet;
 import org.apache.fluo.api.config.FluoConfiguration;
 import org.apache.fluo.api.config.SimpleConfiguration;
 import org.apache.fluo.api.data.Bytes;
@@ -28,8 +29,6 @@ import org.apache.fluo.recipes.core.export.ExportQueue;
 import org.junit.Assert;
 import org.junit.Test;
 
-import com.google.common.collect.ImmutableSet;
-
 public class TestGrouping {
   @Test
   public void testTabletGrouping() {
index c78262e..73dedda 100644 (file)
@@ -32,12 +32,12 @@ import org.apache.fluo.api.observer.ObserverProvider;
 import org.apache.fluo.recipes.accumulo.export.AccumuloReplicator;
 import org.apache.fluo.recipes.accumulo.export.function.AccumuloExporter;
 import org.apache.fluo.recipes.core.export.ExportQueue;
-import org.apache.fluo.recipes.core.transaction.TxLog;
-import org.apache.fluo.recipes.test.AccumuloExportITBase;
 import org.apache.fluo.recipes.core.transaction.RecordingTransaction;
+import org.apache.fluo.recipes.core.transaction.TxLog;
 import org.apache.fluo.recipes.core.types.StringEncoder;
 import org.apache.fluo.recipes.core.types.TypeLayer;
 import org.apache.fluo.recipes.core.types.TypedTransaction;
+import org.apache.fluo.recipes.test.AccumuloExportITBase;
 import org.junit.Assert;
 import org.junit.Test;
 
diff --git a/pom.xml b/pom.xml
index d406c6f..ad6f6c3 100644 (file)
--- a/pom.xml
+++ b/pom.xml
             </systemPropertyVariables>
           </configuration>
         </plugin>
+        <plugin>
+          <groupId>net.revelc.code</groupId>
+          <artifactId>impsort-maven-plugin</artifactId>
+          <version>1.0.0</version>
+          <configuration>
+            <groups>java.,javax.</groups>
+            <staticAfter>true</staticAfter>
+            <excludes>
+              <exclude>**/thrift/*.java</exclude>
+            </excludes>
+          </configuration>
+        </plugin>
       </plugins>
     </pluginManagement>
     <plugins>
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>net.revelc.code</groupId>
+        <artifactId>impsort-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>sort-imports</id>
+            <goals>
+              <goal>sort</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
   <profiles>