You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2022/05/29 19:48:19 UTC

[maven-indexer] branch master updated: [MINDEXER-157] After import all groups and root groups are inverted in the IndexingContext (#211)

This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-indexer.git


The following commit(s) were added to refs/heads/master by this push:
     new a386963  [MINDEXER-157] After import all groups and root groups are inverted in the IndexingContext (#211)
a386963 is described below

commit a38696383569bffa372eb22d15de0299915f9d8a
Author: Matthias Bläsing <mb...@doppel-helix.eu>
AuthorDate: Sun May 29 21:48:15 2022 +0200

    [MINDEXER-157] After import all groups and root groups are inverted in the IndexingContext (#211)
    
    The order or the last two arguments of the call to
    IndexingContext#replace should be "allGroups, rootGroups", but is
    called as "rootGroups, allGroups", leading to the wrong contents
    of the corresponding fields of the IndexingContext.
---
 .../main/java/org/apache/maven/index/updater/DefaultIndexUpdater.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 cae6c1f..88b4c6d 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
@@ -231,7 +231,7 @@ public class DefaultIndexUpdater
             }
             else
             {
-                updateRequest.getIndexingContext().replace( directory, rootGroups, allGroups );
+                updateRequest.getIndexingContext().replace( directory, allGroups, rootGroups );
             }
             if ( sideEffects != null && sideEffects.size() > 0 )
             {