maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject [13/50] git commit: code format and add @since
Date Mon, 18 Mar 2013 21:47:28 GMT
code format and add @since

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1409718 13f79535-47bb-0310-9956-ffa450edef68


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

Branch: refs/heads/master
Commit: bd143134c986ea11b6b14f6cecc8e2d77ea4f433
Parents: 08d2b34 4c61954
Author: Olivier Lamy <olamy@apache.org>
Authored: Thu Nov 15 10:18:06 2012 +0000
Committer: Olivier Lamy <olamy@apache.org>
Committed: Thu Nov 15 10:18:06 2012 +0000

----------------------------------------------------------------------
 .../maven/artifact/repository/RepositoryCache.java |   58 ------------
 .../resolver/ArtifactResolutionRequest.java        |    9 --
 .../org/apache/maven/execution/MavenSession.java   |   11 ---
 .../maven/cli/logging/Slf4jLoggerManager.java      |   70 +++++++++------
 4 files changed, 41 insertions(+), 107 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/bd143134/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jLoggerManager.java
----------------------------------------------------------------------
diff --cc maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jLoggerManager.java
index 739bdc4,739bdc4..9fd83d1
--- a/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jLoggerManager.java
+++ b/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jLoggerManager.java
@@@ -7,46 -7,46 +7,58 @@@ import org.slf4j.LoggerFactory
  
  /**
   * Use an SLF4J {@link org.slf4j.ILoggerFactory} as a backing for a Plexus {@link org.codehaus.plexus.logging.LoggerManager}.
-- * 
++ *
   * @author Jason van Zyl
++ * @since 3.1
   */
--public class Slf4jLoggerManager implements LoggerManager {
++public class Slf4jLoggerManager
++    implements LoggerManager
++{
  
--  private ILoggerFactory loggerFactory;
++    private ILoggerFactory loggerFactory;
  
--  public Slf4jLoggerManager() {
--    loggerFactory = LoggerFactory.getILoggerFactory();
--  }
++    public Slf4jLoggerManager()
++    {
++        loggerFactory = LoggerFactory.getILoggerFactory();
++    }
  
--  public Logger getLoggerForComponent(String role) {
--    return new Slf4jLogger(loggerFactory.getLogger(role));
--  }
++    public Logger getLoggerForComponent( String role )
++    {
++        return new Slf4jLogger( loggerFactory.getLogger( role ) );
++    }
  
--  public Logger getLoggerForComponent(String role, String hint) {
--    return new Slf4jLogger(loggerFactory.getLogger(role + "." + hint));
--  }
++    public Logger getLoggerForComponent( String role, String hint )
++    {
++        return new Slf4jLogger( loggerFactory.getLogger( role + "." + hint ) );
++    }
  
--  //
--  // Trying to give loggers back is a bad idea. Ceki said so :-)
--  //
--  public void returnComponentLogger(String role) {
--  }
++    //
++    // Trying to give loggers back is a bad idea. Ceki said so :-)
++    //
++    public void returnComponentLogger( String role )
++    {
++    }
  
--  public void returnComponentLogger(String role, String hint) {
--  }
++    public void returnComponentLogger( String role, String hint )
++    {
++    }
  
--  public int getThreshold() {
--    return 0;
--  }
++    public int getThreshold()
++    {
++        return 0;
++    }
  
--  public void setThreshold(int threshold) {
--  }
++    public void setThreshold( int threshold )
++    {
++    }
  
--  public void setThresholds(int threshold) {
--  }
++    public void setThresholds( int threshold )
++    {
++    }
  
--  public int getActiveLoggerCount() {
--    return 0;
--  }
++    public int getActiveLoggerCount()
++    {
++        return 0;
++    }
  
  }


Mime
View raw message