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/02/02 09:01:46 UTC

[maven-indexer] branch MINDEXER-133 created (now 14008ef)

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

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


      at 14008ef  [MINDEXER-133] Reset the correct srteam in IndexDataReader

This branch includes the following new commits:

     new 14008ef  [MINDEXER-133] Reset the correct srteam in IndexDataReader

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[maven-indexer] 01/01: [MINDEXER-133] Reset the correct srteam in IndexDataReader

Posted by cs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 14008ef26b5c5d4d2a0f86447abe770700af4a75
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Wed Feb 2 10:01:21 2022 +0100

    [MINDEXER-133] Reset the correct srteam in IndexDataReader
---
 .../main/java/org/apache/maven/index/updater/IndexDataReader.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

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 84e77c6..d8cc804 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
@@ -64,9 +64,8 @@ public class IndexDataReader
         }
         else
         {
-            BufferedInputStream bis = new BufferedInputStream( is, 1024 * 8 );
-            bis.reset();
-            data = bis;
+            is.reset();
+            data = new BufferedInputStream( is, 1024 * 8 );
         }
 
         this.dis = new DataInputStream( data );