You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2016/10/15 22:37:59 UTC

maven git commit: Fix checkstyle error

Repository: maven
Updated Branches:
  refs/heads/master 1c9362be4 -> d99f9ef8c


Fix checkstyle error

Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/d99f9ef8
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/d99f9ef8
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/d99f9ef8

Branch: refs/heads/master
Commit: d99f9ef8c7ffe56966945d6f1b66f0280866ded5
Parents: 1c9362b
Author: Michael Osipov <mi...@apache.org>
Authored: Sun Oct 16 00:37:53 2016 +0200
Committer: Michael Osipov <mi...@apache.org>
Committed: Sun Oct 16 00:37:53 2016 +0200

----------------------------------------------------------------------
 .../aether/DefaultRepositorySystemSessionFactory.java        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/d99f9ef8/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
----------------------------------------------------------------------
diff --git a/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java b/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
index af2562d..248a3b6 100644
--- a/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
+++ b/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
@@ -121,10 +121,10 @@ public class DefaultRepositorySystemSessionFactory
         }
 
         int errorPolicy = 0;
-        errorPolicy |= request.isCacheNotFound() ? ResolutionErrorPolicy.CACHE_NOT_FOUND :
-            ResolutionErrorPolicy.CACHE_DISABLED;
-        errorPolicy |= request.isCacheTransferError() ? ResolutionErrorPolicy.CACHE_TRANSFER_ERROR :
-            ResolutionErrorPolicy.CACHE_DISABLED;
+        errorPolicy |= request.isCacheNotFound() ? ResolutionErrorPolicy.CACHE_NOT_FOUND
+            : ResolutionErrorPolicy.CACHE_DISABLED;
+        errorPolicy |= request.isCacheTransferError() ? ResolutionErrorPolicy.CACHE_TRANSFER_ERROR
+            : ResolutionErrorPolicy.CACHE_DISABLED;
         session.setResolutionErrorPolicy(
             new SimpleResolutionErrorPolicy( errorPolicy, errorPolicy | ResolutionErrorPolicy.CACHE_NOT_FOUND ) );