You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2022/10/16 19:21:09 UTC

[maven-build-cache-extension] branch master updated: Reformat

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

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-build-cache-extension.git


The following commit(s) were added to refs/heads/master by this push:
     new 6343531  Reformat
6343531 is described below

commit 6343531331a15c4c0a5c00cde4db07fe4d95339a
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Sun Oct 16 21:20:51 2022 +0200

    Reformat
---
 src/main/java/org/apache/maven/buildcache/CacheUtils.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/buildcache/CacheUtils.java b/src/main/java/org/apache/maven/buildcache/CacheUtils.java
index 9869294..fa471ba 100644
--- a/src/main/java/org/apache/maven/buildcache/CacheUtils.java
+++ b/src/main/java/org/apache/maven/buildcache/CacheUtils.java
@@ -212,8 +212,9 @@ public class CacheUtils
             while ( entry != null )
             {
                 Path file = out.resolve( entry.getName() );
-                if (!file.normalize().startsWith(out.normalize())) {
-                    throw new RuntimeException("Bad zip entry");
+                if ( !file.normalize().startsWith( out.normalize() ) )
+                {
+                    throw new RuntimeException( "Bad zip entry" );
                 }
                 if ( entry.isDirectory() )
                 {