maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject [1/2] maven-indexer git commit: fixed errors reported by Checkstyle
Date Sat, 25 Nov 2017 12:13:25 GMT
Repository: maven-indexer
Updated Branches:
  refs/heads/master 24c8527ac -> 182cfb386


http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/creator/OsgiArtifactIndexCreator.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/creator/OsgiArtifactIndexCreator.java b/indexer-core/src/main/java/org/apache/maven/index/creator/OsgiArtifactIndexCreator.java
index dcda9dd..ed06d0b 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/creator/OsgiArtifactIndexCreator.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/creator/OsgiArtifactIndexCreator.java
@@ -64,33 +64,34 @@ import java.util.jar.Manifest;
  * @since 4.1.2
  */
 @Singleton
-@Named (OsgiArtifactIndexCreator.ID)
+@Named( OsgiArtifactIndexCreator.ID )
 public class OsgiArtifactIndexCreator
     extends AbstractIndexCreator
 {
     public static final String ID = "osgi-metadatas";
+
     public static final IndexerField FLD_SHA256 =
-            new IndexerField(OSGI.SHA256, IndexerFieldVersion.V4, "sha256", "SHA-256 (not analyzed, stored)",
-                    Field.Store.YES, Field.Index.NOT_ANALYZED);
+        new IndexerField( OSGI.SHA256, IndexerFieldVersion.V4, "sha256", "SHA-256 (not analyzed, stored)",
+                          Field.Store.YES, Field.Index.NOT_ANALYZED );
+
     private static final String BSN = "Bundle-SymbolicName";
 
     public static final IndexerField FLD_BUNDLE_SYMBOLIC_NAME =
         new IndexerField( OSGI.SYMBOLIC_NAME, IndexerFieldVersion.V4, BSN, "Bundle-SymbolicName (indexed, stored)",
                           Field.Store.YES, Field.Index.ANALYZED );
 
-
     private static final String BV = "Bundle-Version";
 
     public static final IndexerField FLD_BUNDLE_VERSION =
         new IndexerField( OSGI.VERSION, IndexerFieldVersion.V4, BV, "Bundle-Version (indexed, stored)", Field.Store.YES,
                           Field.Index.ANALYZED );
 
-
     private static final String BEP = "Export-Package";
 
     public static final IndexerField FLD_BUNDLE_EXPORT_PACKAGE =
         new IndexerField( OSGI.EXPORT_PACKAGE, IndexerFieldVersion.V4, BEP, "Export-Package (indexed, stored)",
                           Field.Store.YES, Field.Index.ANALYZED );
+
     @Deprecated
     private static final String BES = "Export-Service";
     @Deprecated
@@ -98,7 +99,6 @@ public class OsgiArtifactIndexCreator
         new IndexerField( OSGI.EXPORT_SERVICE, IndexerFieldVersion.V4, BES, "Export-Service (indexed, stored)",
                           Field.Store.YES, Field.Index.ANALYZED );
 
-
     private static final String BD = "Bundle-Description";
 
     public static final IndexerField FLD_BUNDLE_DESCRIPTION =
@@ -135,35 +135,41 @@ public class OsgiArtifactIndexCreator
     public static final IndexerField FLD_BUNDLE_REQUIRE_BUNDLE =
         new IndexerField( OSGI.REQUIRE_BUNDLE, IndexerFieldVersion.V4, BRB, "Require-Bundle (indexed, stored)",
                           Field.Store.YES, Field.Index.ANALYZED );
+
     private static final String PROVIDE_CAPABILITY = "Provide-Capability";
+
     public static final IndexerField FLD_BUNDLE_PROVIDE_CAPABILITY =
-            new IndexerField(OSGI.PROVIDE_CAPABILITY, IndexerFieldVersion.V4, PROVIDE_CAPABILITY, "Provide-Capability (indexed, stored)",
-                    Field.Store.YES, Field.Index.ANALYZED);
+        new IndexerField( OSGI.PROVIDE_CAPABILITY, IndexerFieldVersion.V4, PROVIDE_CAPABILITY,
+                          "Provide-Capability (indexed, stored)", Field.Store.YES, Field.Index.ANALYZED );
+
     private static final String REQUIRE_CAPABILITY = "Require-Capability";
+
     public static final IndexerField FLD_BUNDLE_REQUIRE_CAPABILITY =
-            new IndexerField(OSGI.REQUIRE_CAPABILITY, IndexerFieldVersion.V4, REQUIRE_CAPABILITY, "Require-Capability (indexed, stored)",
-                    Field.Store.YES, Field.Index.ANALYZED);
+        new IndexerField( OSGI.REQUIRE_CAPABILITY, IndexerFieldVersion.V4, REQUIRE_CAPABILITY,
+                          "Require-Capability (indexed, stored)", Field.Store.YES, Field.Index.ANALYZED );
+
     private static final String FRAGMENT_HOST = "Fragment-Host";
+
     public static final IndexerField FLD_BUNDLE_FRAGMENT_HOST =
-            new IndexerField(OSGI.FRAGMENT_HOST, IndexerFieldVersion.V4, FRAGMENT_HOST, "Fragment-Host (indexed, stored)",
-                    Field.Store.YES, Field.Index.ANALYZED);
+        new IndexerField( OSGI.FRAGMENT_HOST, IndexerFieldVersion.V4, FRAGMENT_HOST, "Fragment-Host (indexed, stored)",
+                          Field.Store.YES, Field.Index.ANALYZED );
 
     private static final String BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT = "Bundle-RequiredExecutionEnvironment";
-    public static final IndexerField FLD_BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT =
-            new IndexerField(OSGI.BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT, IndexerFieldVersion.V4, BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT,
-                    "Bundle-RequiredExecutionEnvironment (indexed, stored)",
-                    Field.Store.YES, Field.Index.ANALYZED);
-
 
+    public static final IndexerField FLD_BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT =
+        new IndexerField( OSGI.BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT, IndexerFieldVersion.V4,
+                          BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT,
+                          "Bundle-RequiredExecutionEnvironment (indexed, stored)", Field.Store.YES,
+                          Field.Index.ANALYZED );
 
 
     public Collection<IndexerField> getIndexerFields()
     {
-        return Arrays.asList(FLD_BUNDLE_SYMBOLIC_NAME, FLD_BUNDLE_VERSION, FLD_BUNDLE_EXPORT_PACKAGE,
-                FLD_BUNDLE_EXPORT_SERVIVE, FLD_BUNDLE_DESCRIPTION, FLD_BUNDLE_NAME, FLD_BUNDLE_LICENSE,
-                FLD_BUNDLE_DOCURL, FLD_BUNDLE_IMPORT_PACKAGE, FLD_BUNDLE_REQUIRE_BUNDLE,
-                FLD_BUNDLE_PROVIDE_CAPABILITY, FLD_BUNDLE_REQUIRE_CAPABILITY, FLD_BUNDLE_FRAGMENT_HOST,
-                FLD_BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT, FLD_SHA256);
+        return Arrays.asList( FLD_BUNDLE_SYMBOLIC_NAME, FLD_BUNDLE_VERSION, FLD_BUNDLE_EXPORT_PACKAGE,
+                              FLD_BUNDLE_EXPORT_SERVIVE, FLD_BUNDLE_DESCRIPTION, FLD_BUNDLE_NAME, FLD_BUNDLE_LICENSE,
+                              FLD_BUNDLE_DOCURL, FLD_BUNDLE_IMPORT_PACKAGE, FLD_BUNDLE_REQUIRE_BUNDLE,
+                              FLD_BUNDLE_PROVIDE_CAPABILITY, FLD_BUNDLE_REQUIRE_CAPABILITY, FLD_BUNDLE_FRAGMENT_HOST,
+                              FLD_BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT, FLD_SHA256 );
     }
 
     public OsgiArtifactIndexCreator()
@@ -239,25 +245,30 @@ public class OsgiArtifactIndexCreator
             document.add( FLD_BUNDLE_REQUIRE_BUNDLE.toField( artifactInfo.getBundleRequireBundle() ) );
         }
 
-        if (artifactInfo.getBundleProvideCapability() != null) {
-            document.add(FLD_BUNDLE_PROVIDE_CAPABILITY.toField(artifactInfo.getBundleProvideCapability()));
+        if ( artifactInfo.getBundleProvideCapability() != null )
+        {
+            document.add( FLD_BUNDLE_PROVIDE_CAPABILITY.toField( artifactInfo.getBundleProvideCapability() ) );
         }
 
-        if (artifactInfo.getBundleRequireCapability() != null) {
-            document.add(FLD_BUNDLE_REQUIRE_CAPABILITY.toField(artifactInfo.getBundleRequireCapability()));
+        if ( artifactInfo.getBundleRequireCapability() != null )
+        {
+            document.add( FLD_BUNDLE_REQUIRE_CAPABILITY.toField( artifactInfo.getBundleRequireCapability() ) );
         }
 
-        if (artifactInfo.getBundleFragmentHost() != null) {
-            document.add(FLD_BUNDLE_FRAGMENT_HOST.toField(artifactInfo.getBundleFragmentHost()));
+        if ( artifactInfo.getBundleFragmentHost() != null )
+        {
+            document.add( FLD_BUNDLE_FRAGMENT_HOST.toField( artifactInfo.getBundleFragmentHost() ) );
         }
 
         String bree = artifactInfo.getBundleRequiredExecutionEnvironment();
-        if (bree != null) {
-            document.add(FLD_BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT.toField(bree));
+        if ( bree != null )
+        {
+            document.add( FLD_BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT.toField( bree ) );
         }
 
-        if (artifactInfo.getSha256() != null) {
-            document.add(FLD_SHA256.toField(artifactInfo.getSha256()));
+        if ( artifactInfo.getSha256() != null )
+        {
+            document.add( FLD_SHA256.toField( artifactInfo.getSha256() ) );
         }
 
     }
@@ -291,7 +302,6 @@ public class OsgiArtifactIndexCreator
             artifactInfo.setBundleExportPackage( bundleExportPackage );
 
             updated = true;
-
         }
 
         String bundleExportService = document.get( FLD_BUNDLE_EXPORT_SERVIVE.getKey() );
@@ -301,7 +311,6 @@ public class OsgiArtifactIndexCreator
             artifactInfo.setBundleExportService( bundleExportService );
 
             updated = true;
-
         }
 
         String bundleDescription = document.get( FLD_BUNDLE_DESCRIPTION.getKey() );
@@ -311,7 +320,6 @@ public class OsgiArtifactIndexCreator
             artifactInfo.setBundleDescription( bundleDescription );
 
             updated = true;
-
         }
 
 
@@ -322,7 +330,6 @@ public class OsgiArtifactIndexCreator
             artifactInfo.setBundleName( bundleName );
 
             updated = true;
-
         }
 
 
@@ -333,7 +340,6 @@ public class OsgiArtifactIndexCreator
             artifactInfo.setBundleLicense( bundleLicense );
 
             updated = true;
-
         }
 
         String bundleDocUrl = document.get( FLD_BUNDLE_DOCURL.getKey() );
@@ -343,7 +349,6 @@ public class OsgiArtifactIndexCreator
             artifactInfo.setBundleDocUrl( bundleDocUrl );
 
             updated = true;
-
         }
 
         String bundleImportPackage = document.get( FLD_BUNDLE_IMPORT_PACKAGE.getKey() );
@@ -353,7 +358,6 @@ public class OsgiArtifactIndexCreator
             artifactInfo.setBundleImportPackage( bundleImportPackage );
 
             updated = true;
-
         }
 
         String bundleRequireBundle = document.get( FLD_BUNDLE_REQUIRE_BUNDLE.getKey() );
@@ -363,46 +367,50 @@ public class OsgiArtifactIndexCreator
             artifactInfo.setBundleRequireBundle( bundleRequireBundle );
 
             updated = true;
-
         }
-        String bundleProvideCapability = document.get(FLD_BUNDLE_PROVIDE_CAPABILITY.getKey());
 
-        if (bundleProvideCapability != null) {
-            artifactInfo.setBundleProvideCapability(bundleProvideCapability);
+        String bundleProvideCapability = document.get( FLD_BUNDLE_PROVIDE_CAPABILITY.getKey() );
 
-            updated = true;
+        if ( bundleProvideCapability != null )
+        {
+            artifactInfo.setBundleProvideCapability( bundleProvideCapability );
 
+            updated = true;
         }
-        String bundleRequireCapability = document.get(FLD_BUNDLE_REQUIRE_CAPABILITY.getKey());
 
-        if (bundleRequireCapability != null) {
-            artifactInfo.setBundleRequireCapability(bundleRequireCapability);
+        String bundleRequireCapability = document.get( FLD_BUNDLE_REQUIRE_CAPABILITY.getKey() );
 
-            updated = true;
+        if ( bundleRequireCapability != null )
+        {
+            artifactInfo.setBundleRequireCapability( bundleRequireCapability );
 
+            updated = true;
         }
-        String bundleFragmentHost = document.get(FLD_BUNDLE_FRAGMENT_HOST.getKey());
 
-        if (bundleFragmentHost != null) {
-            artifactInfo.setBundleFragmentHost(bundleFragmentHost);
+        String bundleFragmentHost = document.get( FLD_BUNDLE_FRAGMENT_HOST.getKey() );
 
-            updated = true;
+        if ( bundleFragmentHost != null )
+        {
+            artifactInfo.setBundleFragmentHost( bundleFragmentHost );
 
+            updated = true;
         }
 
-        String bundleRequiredExecutionEnvironment = document.get(FLD_BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT.getKey());
+        String bundleRequiredExecutionEnvironment = document.get( FLD_BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT.getKey() );
 
-        if (bundleRequiredExecutionEnvironment != null) {
-            artifactInfo.setBundleRequiredExecutionEnvironment(bundleRequiredExecutionEnvironment);
+        if ( bundleRequiredExecutionEnvironment != null )
+        {
+            artifactInfo.setBundleRequiredExecutionEnvironment( bundleRequiredExecutionEnvironment );
 
             updated = true;
-
         }
 
-        String sha256 = document.get(FLD_SHA256.getKey());
+        String sha256 = document.get( FLD_SHA256.getKey() );
+
+        if ( sha256 != null )
+        {
+            artifactInfo.setSha256( sha256 );
 
-        if (sha256 != null) {
-            artifactInfo.setSha256(sha256);
             updated = true;
         }
 
@@ -543,38 +551,49 @@ public class OsgiArtifactIndexCreator
                             ai.setBundleRequireBundle( null );
                         }
 
-                        attValue = mainAttributes.getValue(PROVIDE_CAPABILITY);
-                        if (StringUtils.isNotBlank(attValue)) {
-                            ai.setBundleProvideCapability(attValue);
+                        attValue = mainAttributes.getValue( PROVIDE_CAPABILITY );
+                        if ( StringUtils.isNotBlank( attValue ) )
+                        {
+                            ai.setBundleProvideCapability( attValue );
                             updated = true;
-                        } else {
-                            ai.setBundleProvideCapability(null);
+                        }
+                        else
+                        {
+                            ai.setBundleProvideCapability( null );
                         }
 
-                        attValue = mainAttributes.getValue(REQUIRE_CAPABILITY);
-                        if (StringUtils.isNotBlank(attValue)) {
-                            ai.setBundleRequireCapability(attValue);
+                        attValue = mainAttributes.getValue( REQUIRE_CAPABILITY );
+                        if ( StringUtils.isNotBlank( attValue ) )
+                        {
+                            ai.setBundleRequireCapability( attValue );
                             updated = true;
-                        } else {
-                            ai.setBundleRequireCapability(null);
+                        }
+                        else
+                        {
+                            ai.setBundleRequireCapability( null );
                         }
 
-                        attValue = mainAttributes.getValue(FRAGMENT_HOST);
-                        if (StringUtils.isNotBlank(attValue)) {
-                            ai.setBundleFragmentHost(attValue);
+                        attValue = mainAttributes.getValue( FRAGMENT_HOST );
+                        if ( StringUtils.isNotBlank( attValue ) )
+                        {
+                            ai.setBundleFragmentHost( attValue );
                             updated = true;
-                        } else {
-                            ai.setBundleFragmentHost(null);
+                        }
+                        else
+                        {
+                            ai.setBundleFragmentHost( null );
                         }
 
-                        attValue = mainAttributes.getValue(BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT);
-                        if (StringUtils.isNotBlank(attValue)) {
-                            ai.setBundleRequiredExecutionEnvironment(attValue);
+                        attValue = mainAttributes.getValue( BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT );
+                        if ( StringUtils.isNotBlank( attValue ) )
+                        {
+                            ai.setBundleRequiredExecutionEnvironment( attValue );
                             updated = true;
-                        } else {
-                            ai.setBundleRequiredExecutionEnvironment(null);
                         }
-
+                        else
+                        {
+                            ai.setBundleRequiredExecutionEnvironment( null );
+                        }
                     }
                 }
             }
@@ -593,40 +612,56 @@ public class OsgiArtifactIndexCreator
         }
 
         // only calculate sha256 digest for if we are indexing a bundle.
-        if (ai.getBundleSymbolicName() != null) {
-            String sha256 = computeSha256(f);
-            if (sha256 != null) {
-                ai.setSha256(sha256);
+        if ( ai.getBundleSymbolicName() != null )
+        {
+            String sha256 = computeSha256( f );
+            if ( sha256 != null )
+            {
+                ai.setSha256( sha256 );
                 updated = true;
-            } else {
-                ai.setSha256(null);
+            }
+            else
+            {
+                ai.setSha256( null );
             }
         }
 
         return updated;
     }
 
-    private String computeSha256(File f) throws IOException {
+    private String computeSha256( File f )
+        throws IOException
+    {
         String sha256 = null;
-        try {
-            MessageDigest digest = MessageDigest.getInstance("SHA-256");
-            DigestInputStream in = new DigestInputStream(new FileInputStream(f), digest);
+        try
+        {
+            MessageDigest digest = MessageDigest.getInstance( "SHA-256" );
+            DigestInputStream in = new DigestInputStream( new FileInputStream( f ), digest );
 
-            try {
+            try
+            {
                 byte buf[] = new byte[8192];
-                while (in.read(buf) >= 0) ;
+                while ( in.read( buf ) >= 0 )
+                {
+                    // nop
+                }
                 byte digestBytes[] = digest.digest();
-                StringBuilder builder = new StringBuilder(64);
-                for (int b : digestBytes) {
+                StringBuilder builder = new StringBuilder( 64 );
+                for ( int b : digestBytes )
+                {
                     b &= 0xff;
-                    builder.append(String.format("%02x", b));
+                    builder.append( String.format( "%02x", b ) );
                     sha256 = builder.toString();
                 }
-            } finally {
+            }
+            finally
+            {
                 in.close();
             }
 
-        } catch (NoSuchAlgorithmException e) {
+        }
+        catch ( NoSuchAlgorithmException e )
+        {
         }
         return sha256;
     }

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/locator/ArtifactLocator.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/locator/ArtifactLocator.java b/indexer-core/src/main/java/org/apache/maven/index/locator/ArtifactLocator.java
index d83b3a4..7ea9a54 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/locator/ArtifactLocator.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/locator/ArtifactLocator.java
@@ -20,7 +20,6 @@ package org.apache.maven.index.locator;
  */
 
 import java.io.File;
-import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.nio.file.Files;
@@ -64,7 +63,7 @@ public class ArtifactLocator
             return null;
         }
 
-        try (InputStream inputStream = Files.newInputStream( source.toPath() ))
+        try ( InputStream inputStream = Files.newInputStream( source.toPath() ) )
         {
             // need to read the pom model to get packaging
             final Model model = new MavenXpp3Reader().read( inputStream, false );

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/packer/DefaultIndexPacker.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/packer/DefaultIndexPacker.java b/indexer-core/src/main/java/org/apache/maven/index/packer/DefaultIndexPacker.java
index 933dd1b..48233dc 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/packer/DefaultIndexPacker.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/packer/DefaultIndexPacker.java
@@ -38,7 +38,6 @@ import org.apache.maven.index.context.IndexingContext;
 import org.apache.maven.index.incremental.IncrementalHandler;
 import org.apache.maven.index.updater.IndexDataWriter;
 import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.IOUtil;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -221,7 +220,7 @@ public class DefaultIndexPacker
             targetArchive.delete();
         }
 
-        try( OutputStream os = new FileOutputStream( targetArchive ) )
+        try ( OutputStream os = new FileOutputStream( targetArchive ) )
         {
             IndexDataWriter dw = new IndexDataWriter( os );
             dw.write( request.getContext(), request.getIndexReader(), docIndexes );
@@ -239,12 +238,12 @@ public class DefaultIndexPacker
 
         info.setProperty( IndexingContext.INDEX_ID, request.getContext().getId() );
 
-        try (OutputStream os = new FileOutputStream( propertyFile ))
+        try ( OutputStream os = new FileOutputStream( propertyFile ) )
         {
             info.store( os, null );
         }
 
-        try (OutputStream os = new FileOutputStream( targetPropertyFile ))
+        try ( OutputStream os = new FileOutputStream( targetPropertyFile ) )
         {
             info.store( os, null );
         }

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/packer/DigesterUtils.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/packer/DigesterUtils.java b/indexer-core/src/main/java/org/apache/maven/index/packer/DigesterUtils.java
index be98346..5adffad 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/packer/DigesterUtils.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/packer/DigesterUtils.java
@@ -29,8 +29,6 @@ import java.io.UnsupportedEncodingException;
 import java.security.MessageDigest;
 import java.security.NoSuchAlgorithmException;
 
-import org.codehaus.plexus.util.IOUtil;
-
 /**
  * A util class to calculate various digests on Strings. Useful for some simple password management.
  * 
@@ -144,7 +142,7 @@ public class DigesterUtils
     public static String getSha1Digest( File file )
         throws IOException
     {
-        try (FileInputStream fis = new FileInputStream( file ))
+        try ( FileInputStream fis = new FileInputStream( file ) )
         {
             return getDigest( "SHA1", fis );
         }
@@ -217,7 +215,7 @@ public class DigesterUtils
         throws IOException
     {
 
-        try (InputStream fis = new FileInputStream( file ))
+        try ( InputStream fis = new FileInputStream( file ) )
         {
             return getDigest( "MD5", fis );
         }

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/packer/IndexPackingRequest.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/packer/IndexPackingRequest.java b/indexer-core/src/main/java/org/apache/maven/index/packer/IndexPackingRequest.java
index 0b74ea3..850d9d8 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/packer/IndexPackingRequest.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/packer/IndexPackingRequest.java
@@ -24,7 +24,6 @@ import java.util.Arrays;
 import java.util.Collection;
 
 import org.apache.lucene.index.IndexReader;
-import org.apache.lucene.search.IndexSearcher;
 import org.apache.maven.index.context.IndexingContext;
 
 import static com.google.common.base.Preconditions.checkNotNull;
@@ -54,7 +53,7 @@ public class IndexPackingRequest
 
     public IndexPackingRequest( final IndexingContext context, final IndexReader indexReader, final File targetDir )
     {
-        this.context = checkNotNull(context);
+        this.context = checkNotNull( context );
 
         this.indexReader = checkNotNull( indexReader );
 
@@ -76,7 +75,10 @@ public class IndexPackingRequest
         return context;
     }
 
-    public IndexReader getIndexReader() { return indexReader; }
+    public IndexReader getIndexReader()
+    {
+        return indexReader;
+    }
 
     /**
      * Sets index formats to be created
@@ -142,7 +144,7 @@ public class IndexPackingRequest
     /**
      * Index format enumeration.
      */
-    public static enum IndexFormat
+    public enum IndexFormat
     {
         FORMAT_V1;
     }

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/treeview/AbstractTreeNode.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/treeview/AbstractTreeNode.java b/indexer-core/src/main/java/org/apache/maven/index/treeview/AbstractTreeNode.java
index 75a509f..90e9038 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/treeview/AbstractTreeNode.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/treeview/AbstractTreeNode.java
@@ -74,9 +74,9 @@ public abstract class AbstractTreeNode
      */
     private String repositoryId;
 
-    final private transient IndexTreeView treeView;
+    private final transient IndexTreeView treeView;
 
-    final private transient TreeViewRequest request;
+    private final transient TreeViewRequest request;
 
     /**
      * Constructor that takes an IndexTreeView implementation and a TreeNodeFactory implementation;

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/treeview/DefaultIndexTreeView.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/treeview/DefaultIndexTreeView.java b/indexer-core/src/main/java/org/apache/maven/index/treeview/DefaultIndexTreeView.java
index ee1fc77..61f450c 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/treeview/DefaultIndexTreeView.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/treeview/DefaultIndexTreeView.java
@@ -189,7 +189,8 @@ public class DefaultIndexTreeView
 
                             // it needs to be created only if not found (is null) and is _below_ groupParentResource
                             if ( groupResource == null
-                                && groupParentResource.getPath().length() < getPathForAi( ai, MAVEN.GROUP_ID ).length() )
+                                && groupParentResource.getPath().length() < getPathForAi( ai,
+                                                                                          MAVEN.GROUP_ID ).length() )
                             {
                                 String gNodeName =
                                     partialGroupId.lastIndexOf( '.' ) > -1 ? partialGroupId.substring(
@@ -218,8 +219,8 @@ public class DefaultIndexTreeView
                             }
                         }
 
-                        artifactResource =
-                            request.getFactory().createANode( this, request, ai, getPathForAi( ai, MAVEN.ARTIFACT_ID ) );
+                        artifactResource = request.getFactory().createANode( this, request, ai,
+                                                                             getPathForAi( ai, MAVEN.ARTIFACT_ID ) );
 
                         groupParentResource.getChildren().add( artifactResource );
 

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/treeview/TreeNode.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/treeview/TreeNode.java b/indexer-core/src/main/java/org/apache/maven/index/treeview/TreeNode.java
index 58d1c12..f444cdf 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/treeview/TreeNode.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/treeview/TreeNode.java
@@ -24,7 +24,7 @@ import java.util.List;
 
 public interface TreeNode
 {
-    public enum Type
+    enum Type
     {
         G, A, V, artifact
     };

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/updater/DefaultIndexUpdater.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/updater/DefaultIndexUpdater.java b/indexer-core/src/main/java/org/apache/maven/index/updater/DefaultIndexUpdater.java
index 06b2834..38c8d0d 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/updater/DefaultIndexUpdater.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/updater/DefaultIndexUpdater.java
@@ -90,7 +90,8 @@ public class DefaultIndexUpdater
 
 
     @Inject
-    public DefaultIndexUpdater( final IncrementalHandler incrementalHandler, final List<IndexUpdateSideEffect> sideEffects )
+    public DefaultIndexUpdater( final IncrementalHandler incrementalHandler,
+                                final List<IndexUpdateSideEffect> sideEffects )
     {
         this.incrementalHandler = incrementalHandler;
         this.sideEffects = sideEffects;
@@ -134,7 +135,7 @@ public class DefaultIndexUpdater
 
                     try
                     {
-                        if( fetchAndUpdateIndex( updateRequest, fetcher, cache ).isSuccessful() )
+                        if ( fetchAndUpdateIndex( updateRequest, fetcher, cache ).isSuccessful() )
                         {
                             cache.commit();
                         }
@@ -159,7 +160,7 @@ public class DefaultIndexUpdater
                     LuceneIndexAdaptor target = new LuceneIndexAdaptor( updateRequest );
                     result = fetchAndUpdateIndex( updateRequest, fetcher, target );
                     
-                    if(result.isSuccessful())
+                    if ( result.isSuccessful() )
                     {
                         target.commit();
                     }
@@ -189,8 +190,8 @@ public class DefaultIndexUpdater
         indexDir.delete();
         indexDir.mkdirs();
 
-        try(BufferedInputStream is = new BufferedInputStream( fetcher.retrieve( remoteIndexFile ) ); //
-            Directory directory = updateRequest.getFSDirectoryFactory().open( indexDir ))
+        try ( BufferedInputStream is = new BufferedInputStream( fetcher.retrieve( remoteIndexFile ) ); //
+                        Directory directory = updateRequest.getFSDirectoryFactory().open( indexDir ) )
         {
             Date timestamp = null;
 
@@ -206,7 +207,8 @@ public class DefaultIndexUpdater
             else
             {
                 // legacy transfer format
-                throw new IllegalArgumentException("The legacy format is no longer supported by this version of maven-indexer.");
+                throw new IllegalArgumentException( "The legacy format is no longer supported "
+                    + "by this version of maven-indexer." );
             }
 
             if ( updateRequest.getDocumentFilter() != null )
@@ -256,13 +258,13 @@ public class DefaultIndexUpdater
             r = DirectoryReader.open( directory );
             w = new NexusIndexWriter( directory, new NexusAnalyzer(), false );
             
-            Bits liveDocs = MultiFields.getLiveDocs(r);
+            Bits liveDocs = MultiFields.getLiveDocs( r );
 
             int numDocs = r.maxDoc();
 
             for ( int i = 0; i < numDocs; i++ )
             {
-                if (liveDocs != null && ! liveDocs.get(i) )
+                if ( liveDocs != null && !liveDocs.get( i ) )
                 {
                     continue;
                 }
@@ -271,8 +273,8 @@ public class DefaultIndexUpdater
 
                 if ( !filter.accept( d ) )
                 {
-                    boolean success = w.tryDeleteDocument(r, i);
-                    //FIXME handle deletion failure
+                    boolean success = w.tryDeleteDocument( r, i );
+                    // FIXME handle deletion failure
                 }
             }
             w.commit();
@@ -301,7 +303,7 @@ public class DefaultIndexUpdater
     {
         File indexProperties = new File( indexDirectoryFile, remoteIndexPropertiesName );
 
-        try ( FileInputStream fis = new FileInputStream( indexProperties ))
+        try ( FileInputStream fis = new FileInputStream( indexProperties ) )
         {
             Properties properties = new Properties();
 
@@ -323,7 +325,7 @@ public class DefaultIndexUpdater
 
         if ( properties != null )
         {
-            try (OutputStream os = new BufferedOutputStream( new FileOutputStream( file ) ))
+            try ( OutputStream os = new BufferedOutputStream( new FileOutputStream( file ) ) )
             {
                 properties.store( os, null );
             }
@@ -337,7 +339,7 @@ public class DefaultIndexUpdater
     private Properties downloadIndexProperties( final ResourceFetcher fetcher )
         throws IOException
     {
-        try (InputStream fis = fetcher.retrieve( IndexingContext.INDEX_REMOTE_PROPERTIES_FILE ))
+        try ( InputStream fis = fetcher.retrieve( IndexingContext.INDEX_REMOTE_PROPERTIES_FILE ) )
         {
             Properties properties = new Properties();
 
@@ -373,7 +375,8 @@ public class DefaultIndexUpdater
      * @param w a writer to save index data
      * @param ics a collection of index creators for updating unpacked documents.
      */
-    public static IndexDataReadResult unpackIndexData( final InputStream is, final Directory d, final IndexingContext context )
+    public static IndexDataReadResult unpackIndexData( final InputStream is, final Directory d,
+                                                       final IndexingContext context )
         throws IOException
     {
         NexusIndexWriter w = new NexusIndexWriter( d, new NexusAnalyzer(), true );
@@ -477,7 +480,7 @@ public class DefaultIndexUpdater
     {
         private final IndexUpdateRequest updateRequest;
 
-        public LuceneIndexAdaptor( IndexUpdateRequest updateRequest )
+        LuceneIndexAdaptor( IndexUpdateRequest updateRequest )
         {
             super( updateRequest.getIndexingContext().getIndexDirectoryFile() );
             this.updateRequest = updateRequest;
@@ -536,7 +539,7 @@ public class DefaultIndexUpdater
 
         private final ArrayList<String> newChunks = new ArrayList<String>();
 
-        public LocalCacheIndexAdaptor( File dir, IndexUpdateResult result )
+        LocalCacheIndexAdaptor( File dir, IndexUpdateResult result )
         {
             super( dir );
             this.result = result;
@@ -601,8 +604,8 @@ public class DefaultIndexUpdater
             throws IOException
         {
             File chunksFile = new File( dir, CHUNKS_FILENAME );
-            try (BufferedOutputStream os = new BufferedOutputStream( new FileOutputStream( chunksFile, true ) ); //
-                 Writer w = new OutputStreamWriter( os, CHUNKS_FILE_ENCODING ))
+            try ( BufferedOutputStream os = new BufferedOutputStream( new FileOutputStream( chunksFile, true ) ); //
+                            Writer w = new OutputStreamWriter( os, CHUNKS_FILE_ENCODING ) )
             {
                 for ( String filename : newChunks )
                 {
@@ -619,8 +622,8 @@ public class DefaultIndexUpdater
             ArrayList<String> chunks = new ArrayList<String>();
 
             File chunksFile = new File( dir, CHUNKS_FILENAME );
-            try (BufferedReader r =
-                     new BufferedReader( new InputStreamReader( new FileInputStream( chunksFile ), CHUNKS_FILE_ENCODING ) ))
+            try ( BufferedReader r =
+                new BufferedReader( new InputStreamReader( new FileInputStream( chunksFile ), CHUNKS_FILE_ENCODING ) ) )
             {
                 String str;
                 while ( ( str = r.readLine() ) != null )
@@ -648,7 +651,7 @@ public class DefaultIndexUpdater
     abstract static class LocalIndexCacheFetcher
         extends FileFetcher
     {
-        public LocalIndexCacheFetcher( File basedir )
+        LocalIndexCacheFetcher( File basedir )
         {
             super( basedir );
         }
@@ -693,8 +696,8 @@ public class DefaultIndexUpdater
                         target.addIndexChunk( source, filename );
                     }
 
-                    result.setTimestamp(updateTimestamp);
-                    result.setSuccessful(true);
+                    result.setTimestamp( updateTimestamp );
+                    result.setSuccessful( true );
                     return result;
                 }
             }
@@ -714,7 +717,7 @@ public class DefaultIndexUpdater
                 if ( updateTimestamp != null && localTimestamp != null && !updateTimestamp.after( localTimestamp ) )
                 {
                     //Index is up to date
-                    result.setSuccessful(true);
+                    result.setSuccessful( true );
                     return result;
                 }
             }
@@ -725,7 +728,7 @@ public class DefaultIndexUpdater
             target.setProperties( source );
         }
 
-        if( !updateRequest.isIncrementalOnly() )
+        if ( !updateRequest.isIncrementalOnly() )
         {
             Date timestamp = null;
             try
@@ -756,9 +759,9 @@ public class DefaultIndexUpdater
                 }
             }
             
-            result.setTimestamp(timestamp);
-            result.setSuccessful(true);
-            result.setFullUpdate(true);
+            result.setTimestamp( timestamp );
+            result.setSuccessful( true );
+            result.setFullUpdate( true );
         }
         
         return result;

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/updater/FSDirectoryFactory.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/updater/FSDirectoryFactory.java b/indexer-core/src/main/java/org/apache/maven/index/updater/FSDirectoryFactory.java
index 9866bbf..92342cc 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/updater/FSDirectoryFactory.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/updater/FSDirectoryFactory.java
@@ -35,7 +35,7 @@ public interface FSDirectoryFactory
     /**
      * Default implementation that lets Lucene choose FSDirectory implementation.
      */
-    public static final FSDirectoryFactory DEFAULT = new FSDirectoryFactory()
+    FSDirectoryFactory DEFAULT = new FSDirectoryFactory()
     {
         public FSDirectory open( File indexDir )
             throws IOException
@@ -44,6 +44,6 @@ public interface FSDirectoryFactory
         }
     };
 
-    public FSDirectory open( File indexDir )
+    FSDirectory open( File indexDir )
         throws IOException;
 }

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataReader.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataReader.java b/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataReader.java
index 792943d..716fda6 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataReader.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataReader.java
@@ -61,7 +61,7 @@ public class IndexDataReader
         if ( is.read() == 0x1f && is.read() == 0x8b ) // GZIPInputStream.GZIP_MAGIC
         {
             is.reset();
-            data = new BufferedInputStream(new GZIPInputStream( is, 1024 * 8 ), 1024 * 8 );
+            data = new BufferedInputStream( new GZIPInputStream( is, 1024 * 8 ), 1024 * 8 );
         }
         else
         {
@@ -96,13 +96,16 @@ public class IndexDataReader
         while ( ( doc = readDocument() ) != null )
         {
             ArtifactInfo ai = IndexUtils.constructArtifactInfo( doc, context );
-            if(ai != null) {
+            if ( ai != null )
+            {
                 w.addDocument( IndexUtils.updateDocument( doc, context, false, ai ) );
 
                 rootGroups.add( ai.getRootGroup() );
                 allGroups.add( ai.getGroupId() );
 
-            } else {
+            }
+            else
+            {
                 w.addDocument( doc );
             }
             n++;
@@ -156,13 +159,15 @@ public class IndexDataReader
         // Fix up UINFO field wrt MINDEXER-41
         final Field uinfoField = (Field) doc.getField( ArtifactInfo.UINFO );
         final String info =  doc.get( ArtifactInfo.INFO );
-        if (uinfoField!= null && !Strings.isNullOrEmpty(info)) {
+        if ( uinfoField != null && !Strings.isNullOrEmpty( info ) )
+        {
             final String[] splitInfo = ArtifactInfo.FS_PATTERN.split( info );
             if ( splitInfo.length > 6 )
             {
                 final String extension = splitInfo[6];
                 final String uinfoString = uinfoField.stringValue();
-                if (uinfoString.endsWith( ArtifactInfo.FS + ArtifactInfo.NA )) {
+                if ( uinfoString.endsWith( ArtifactInfo.FS + ArtifactInfo.NA ) )
+                {
                     uinfoField.setStringValue( uinfoString + ArtifactInfo.FS + ArtifactInfo.nvl( extension ) );
                 }
             }
@@ -211,8 +216,8 @@ public class IndexDataReader
         catch ( OutOfMemoryError e )
         {
             final IOException ex =
-                new IOException(
-                    "Index data content is inappropriate (is junk?), leads to OutOfMemoryError! See MINDEXER-28 for more information!" );
+                new IOException( "Index data content is inappropriate (is junk?), leads to OutOfMemoryError!"
+                    + " See MINDEXER-28 for more information!" );
             ex.initCause( e );
             throw ex;
         }
@@ -328,7 +333,7 @@ public class IndexDataReader
             return timestamp;
         }
 
-        public void setRootGroups(Set<String> rootGroups)
+        public void setRootGroups( Set<String> rootGroups )
         {
             this.rootGroups = rootGroups;
         }
@@ -338,7 +343,7 @@ public class IndexDataReader
             return rootGroups;
         }
 
-        public void setAllGroups(Set<String> allGroups)
+        public void setAllGroups( Set<String> allGroups )
         {
             this.allGroups = allGroups;
         }
@@ -392,7 +397,7 @@ public class IndexDataReader
     /**
      * Visitor of indexed Lucene documents.
      */
-    public static interface IndexDataReadVisitor
+    public interface IndexDataReadVisitor
     {
 
         /**

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataWriter.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataWriter.java b/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataWriter.java
index 5d9e338..979474d 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataWriter.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataWriter.java
@@ -31,14 +31,12 @@ import java.util.List;
 import java.util.Set;
 import java.util.zip.GZIPOutputStream;
 import org.apache.lucene.document.Document;
-import org.apache.lucene.document.Field;
 import org.apache.lucene.document.Field.Store;
 import org.apache.lucene.document.StringField;
 import org.apache.lucene.index.IndexOptions;
 import org.apache.lucene.index.IndexReader;
 import org.apache.lucene.index.IndexableField;
 import org.apache.lucene.index.MultiFields;
-import org.apache.lucene.search.IndexSearcher;
 import org.apache.lucene.util.Bits;
 import org.apache.maven.index.ArtifactInfo;
 import org.apache.maven.index.context.DefaultIndexingContext;
@@ -124,15 +122,18 @@ public class IndexDataWriter
     {
         {
             List<IndexableField> allGroupsFields = new ArrayList<>( 2 );
-            allGroupsFields.add( new StringField( ArtifactInfo.ALL_GROUPS, ArtifactInfo.ALL_GROUPS_VALUE, Store.YES));
-            allGroupsFields.add( new StringField( ArtifactInfo.ALL_GROUPS_LIST, ArtifactInfo.lst2str( allGroups ), Store.YES) );
+            allGroupsFields.add( new StringField( ArtifactInfo.ALL_GROUPS, ArtifactInfo.ALL_GROUPS_VALUE, Store.YES ) );
+            allGroupsFields.add( new StringField( ArtifactInfo.ALL_GROUPS_LIST, ArtifactInfo.lst2str( allGroups ),
+                                                  Store.YES ) );
             writeDocumentFields( allGroupsFields );
         }
 
         {
             List<IndexableField> rootGroupsFields = new ArrayList<>( 2 );
-            rootGroupsFields.add( new StringField( ArtifactInfo.ROOT_GROUPS, ArtifactInfo.ROOT_GROUPS_VALUE, Store.YES) );
-            rootGroupsFields.add( new StringField( ArtifactInfo.ROOT_GROUPS_LIST, ArtifactInfo.lst2str( rootGroups ), Store.YES ));
+            rootGroupsFields.add( new StringField( ArtifactInfo.ROOT_GROUPS, ArtifactInfo.ROOT_GROUPS_VALUE,
+                                                   Store.YES ) );
+            rootGroupsFields.add( new StringField( ArtifactInfo.ROOT_GROUPS_LIST, ArtifactInfo.lst2str( rootGroups ),
+                                                   Store.YES ) );
             writeDocumentFields( rootGroupsFields );
         }
     }
@@ -141,13 +142,13 @@ public class IndexDataWriter
         throws IOException
     {
         int n = 0;
-        Bits liveDocs = MultiFields.getLiveDocs(r);
+        Bits liveDocs = MultiFields.getLiveDocs( r );
 
         if ( docIndexes == null )
         {
             for ( int i = 0; i < r.maxDoc(); i++ )
             {
-                if (liveDocs == null || liveDocs.get(i) )
+                if ( liveDocs == null || liveDocs.get( i ) )
                 {
                     if ( writeDocument( r.document( i ) ) )
                     {
@@ -160,7 +161,7 @@ public class IndexDataWriter
         {
             for ( int i : docIndexes )
             {
-                if ( liveDocs == null || liveDocs.get(i) )
+                if ( liveDocs == null || liveDocs.get( i ) )
                 {
                     if ( writeDocument( r.document( i ) ) )
                     {
@@ -180,7 +181,7 @@ public class IndexDataWriter
 
         List<IndexableField> storedFields = new ArrayList<>( fields.size() );
 
-        for (IndexableField field : fields )
+        for ( IndexableField field : fields )
         {
             if ( DefaultIndexingContext.FLD_DESCRIPTOR.equals( field.name() ) )
             {
@@ -218,7 +219,7 @@ public class IndexDataWriter
                 return false;
             }
 
-            if ( field.fieldType().stored())
+            if ( field.fieldType().stored() )
             {
                 storedFields.add( field );
             }

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/updater/IndexUpdateRequest.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/updater/IndexUpdateRequest.java b/indexer-core/src/main/java/org/apache/maven/index/updater/IndexUpdateRequest.java
index ed35565..9b4e7e3 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/updater/IndexUpdateRequest.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/updater/IndexUpdateRequest.java
@@ -99,7 +99,7 @@ public class IndexUpdateRequest
         return incrementalOnly;
     }
 
-    public void setIncrementalOnly(boolean incrementalOnly)
+    public void setIncrementalOnly( boolean incrementalOnly )
     {
         this.incrementalOnly = incrementalOnly;
     }

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-core/src/main/java/org/apache/maven/index/updater/IndexUpdateResult.java
----------------------------------------------------------------------
diff --git a/indexer-core/src/main/java/org/apache/maven/index/updater/IndexUpdateResult.java b/indexer-core/src/main/java/org/apache/maven/index/updater/IndexUpdateResult.java
index 906bbd0..bd51b36 100644
--- a/indexer-core/src/main/java/org/apache/maven/index/updater/IndexUpdateResult.java
+++ b/indexer-core/src/main/java/org/apache/maven/index/updater/IndexUpdateResult.java
@@ -61,7 +61,7 @@ public class IndexUpdateResult
         return successful;
     }
 
-    public void setSuccessful(boolean successful)
+    public void setSuccessful( boolean successful )
     {
         this.successful = successful;
     }

http://git-wip-us.apache.org/repos/asf/maven-indexer/blob/182cfb38/indexer-examples/indexer-examples-basic/src/main/java/org/apache/maven/indexer/examples/BasicUsageExample.java
----------------------------------------------------------------------
diff --git a/indexer-examples/indexer-examples-basic/src/main/java/org/apache/maven/indexer/examples/BasicUsageExample.java b/indexer-examples/indexer-examples-basic/src/main/java/org/apache/maven/indexer/examples/BasicUsageExample.java
index ba463f4..fc23bc2 100644
--- a/indexer-examples/indexer-examples-basic/src/main/java/org/apache/maven/indexer/examples/BasicUsageExample.java
+++ b/indexer-examples/indexer-examples-basic/src/main/java/org/apache/maven/indexer/examples/BasicUsageExample.java
@@ -293,9 +293,9 @@ public class BasicUsageExample
         searchAndDump( indexer, "main artifacts under GA org.apache.maven.indexer:indexer-artifact", bq );
 
         // doing sha1 search
-        searchAndDump( indexer, "SHA1 7ab67e6b20e5332a7fb4fdf2f019aec4275846c2", indexer.constructQuery( MAVEN.SHA1,
-                                                                                                         new SourcedSearchExpression(
-                                                                                                             "7ab67e6b20e5332a7fb4fdf2f019aec4275846c2" ) ) );
+        searchAndDump( indexer, "SHA1 7ab67e6b20e5332a7fb4fdf2f019aec4275846c2",
+                       indexer.constructQuery( MAVEN.SHA1,
+                                               new SourcedSearchExpression( "7ab67e6b20e5332a7fb4fdf2f019aec4275846c2" ) ) );
 
         searchAndDump( indexer, "SHA1 7ab67e6b20 (partial hash)",
                        indexer.constructQuery( MAVEN.SHA1, new UserInputSearchExpression( "7ab67e6b20" ) ) );


Mime
View raw message