Coverage Report - org.apache.maven.plugin.dependency.utils.DependencySilentLog
 
Classes in this File Line Coverage Branch Coverage Complexity
DependencySilentLog
100 %
31/31
N/A
1
 
 1  
 package org.apache.maven.plugin.dependency.utils;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  * http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.    
 20  
  */
 21  
 
 22  
 import org.apache.maven.plugin.logging.Log;
 23  
 import org.codehaus.plexus.logging.Logger;
 24  
 
 25  
 /**
 26  
  * This logger implements both types of logs currently in use and turns off logs.
 27  
  * 
 28  
  * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
 29  
  * @version $Id: DependencySilentLog.java 1085803 2011-03-26 21:15:52Z hboutemy $
 30  
  */
 31  118
 public class DependencySilentLog
 32  
     implements Log, Logger
 33  
 {
 34  
     /**
 35  
      * @return <code>false</code>
 36  
      * @see org.apache.maven.plugin.logging.Log#isDebugEnabled()
 37  
      */
 38  
     public boolean isDebugEnabled()
 39  
     {
 40  236
         return false;
 41  
     }
 42  
 
 43  
     /**
 44  
      * By default, do nothing.
 45  
      *
 46  
      * @see org.apache.maven.plugin.logging.Log#debug(java.lang.CharSequence)
 47  
      */
 48  
     public void debug( CharSequence content )
 49  
     {
 50  
         // nop
 51  14
     }
 52  
 
 53  
     /**
 54  
      * By default, do nothing.
 55  
      *
 56  
      * @see org.apache.maven.plugin.logging.Log#debug(java.lang.CharSequence, java.lang.Throwable)
 57  
      */
 58  
     public void debug( CharSequence content, Throwable error )
 59  
     {
 60  
         // nop
 61  1
     }
 62  
 
 63  
     /**
 64  
      * By default, do nothing.
 65  
      *
 66  
      * @see org.apache.maven.plugin.logging.Log#debug(java.lang.Throwable)
 67  
      */
 68  
     public void debug( Throwable error )
 69  
     {
 70  
         // nop
 71  3
     }
 72  
 
 73  
     /**
 74  
      * @return <code>false</code>
 75  
      * @see org.apache.maven.plugin.logging.Log#isInfoEnabled()
 76  
      */
 77  
     public boolean isInfoEnabled()
 78  
     {
 79  170
         return false;
 80  
     }
 81  
 
 82  
     /**
 83  
      * By default, do nothing.
 84  
      *
 85  
      * @see org.apache.maven.plugin.logging.Log#info(java.lang.CharSequence)
 86  
      */
 87  
     public void info( CharSequence content )
 88  
     {
 89  
         // nop
 90  411
     }
 91  
 
 92  
     /**
 93  
      * By default, do nothing.
 94  
      *
 95  
      * @see org.apache.maven.plugin.logging.Log#info(java.lang.CharSequence, java.lang.Throwable)
 96  
      */
 97  
     public void info( CharSequence content, Throwable error )
 98  
     {
 99  
         // nop
 100  1
     }
 101  
 
 102  
     /**
 103  
      * By default, do nothing.
 104  
      *
 105  
      * @see org.apache.maven.plugin.logging.Log#info(java.lang.Throwable)
 106  
      */
 107  
     public void info( Throwable error )
 108  
     {
 109  
         // nop
 110  1
     }
 111  
 
 112  
     /**
 113  
      * By default, do nothing.
 114  
      *
 115  
      * @see org.apache.maven.plugin.logging.Log#isWarnEnabled()
 116  
      */
 117  
     public boolean isWarnEnabled()
 118  
     {
 119  
         // nop
 120  2
         return false;
 121  
     }
 122  
 
 123  
     /**
 124  
      * By default, do nothing.
 125  
      *
 126  
      * @see org.apache.maven.plugin.logging.Log#warn(java.lang.CharSequence)
 127  
      */
 128  
     public void warn( CharSequence content )
 129  
     {
 130  
         // nop
 131  1
     }
 132  
 
 133  
     /**
 134  
      * By default, do nothing.
 135  
      *
 136  
      * @see org.apache.maven.plugin.logging.Log#warn(java.lang.CharSequence, java.lang.Throwable)
 137  
      */
 138  
     public void warn( CharSequence content, Throwable error )
 139  
     {
 140  
         // nop
 141  1
     }
 142  
 
 143  
     /**
 144  
      * By default, do nothing.
 145  
      *
 146  
      * @see org.apache.maven.plugin.logging.Log#warn(java.lang.Throwable)
 147  
      */
 148  
     public void warn( Throwable error )
 149  
     {
 150  
         // nop
 151  1
     }
 152  
 
 153  
     /**
 154  
      * @return <code>false</code>
 155  
      * @see org.apache.maven.plugin.logging.Log#isErrorEnabled()
 156  
      */
 157  
     public boolean isErrorEnabled()
 158  
     {
 159  2
         return false;
 160  
     }
 161  
 
 162  
     /**
 163  
      * By default, do nothing.
 164  
      *
 165  
      * @see org.apache.maven.plugin.logging.Log#error(java.lang.CharSequence)
 166  
      */
 167  
     public void error( CharSequence content )
 168  
     {
 169  
         // nop
 170  1
     }
 171  
 
 172  
     /**
 173  
      * By default, do nothing.
 174  
      *
 175  
      * @see org.apache.maven.plugin.logging.Log#error(java.lang.CharSequence, java.lang.Throwable)
 176  
      */
 177  
     public void error( CharSequence content, Throwable error )
 178  
     {
 179  
         // nop
 180  1
     }
 181  
 
 182  
     /**
 183  
      * By default, do nothing.
 184  
      *
 185  
      * @see org.apache.maven.plugin.logging.Log#error(java.lang.Throwable)
 186  
      */
 187  
     public void error( Throwable error )
 188  
     {
 189  
         // nop
 190  1
     }
 191  
 
 192  
     /**
 193  
      * By default, do nothing.
 194  
      *
 195  
      * @see org.codehaus.plexus.logging.Logger#debug(java.lang.String)
 196  
      */
 197  
     public void debug( String message )
 198  
     {
 199  
         // nop
 200  337
     }
 201  
 
 202  
     /**
 203  
      * By default, do nothing.
 204  
      *
 205  
      * @see org.codehaus.plexus.logging.Logger#debug(java.lang.String, java.lang.Throwable)
 206  
      */
 207  
     public void debug( String message, Throwable throwable )
 208  
     {
 209  
         // nop
 210  1
     }
 211  
 
 212  
     /**
 213  
      * By default, do nothing.
 214  
      *
 215  
      * @see org.codehaus.plexus.logging.Logger#info(java.lang.String)
 216  
      */
 217  
     public void info( String message )
 218  
     {
 219  
         // nop
 220  1
     }
 221  
 
 222  
     /**
 223  
      * By default, do nothing.
 224  
      *
 225  
      * @see org.codehaus.plexus.logging.Logger#info(java.lang.String, java.lang.Throwable)
 226  
      */
 227  
     public void info( String message, Throwable throwable )
 228  
     {
 229  
         // nop
 230  1
     }
 231  
 
 232  
     /**
 233  
      * By default, do nothing.
 234  
      *
 235  
      * @see org.codehaus.plexus.logging.Logger#warn(java.lang.String)
 236  
      */
 237  
     public void warn( String message )
 238  
     {
 239  
         // nop
 240  1
     }
 241  
 
 242  
     /**
 243  
      * By default, do nothing.
 244  
      *
 245  
      * @see org.codehaus.plexus.logging.Logger#warn(java.lang.String, java.lang.Throwable)
 246  
      */
 247  
     public void warn( String message, Throwable throwable )
 248  
     {
 249  
         // nop
 250  1
     }
 251  
 
 252  
     /**
 253  
      * By default, do nothing.
 254  
      *
 255  
      * @see org.codehaus.plexus.logging.Logger#error(java.lang.String)
 256  
      */
 257  
     public void error( String message )
 258  
     {
 259  
         // nop
 260  1
     }
 261  
 
 262  
     /**
 263  
      * By default, do nothing.
 264  
      *
 265  
      * @see org.codehaus.plexus.logging.Logger#error(java.lang.String, java.lang.Throwable)
 266  
      */
 267  
     public void error( String message, Throwable throwable )
 268  
     {
 269  
         // nop
 270  1
     }
 271  
 
 272  
     /**
 273  
      * By default, do nothing.
 274  
      *
 275  
      * @see org.codehaus.plexus.logging.Logger#fatalError(java.lang.String)
 276  
      */
 277  
     public void fatalError( String message )
 278  
     {
 279  
         // nop
 280  1
     }
 281  
 
 282  
     /**
 283  
      * By default, do nothing.
 284  
      *
 285  
      * @see org.codehaus.plexus.logging.Logger#fatalError(java.lang.String, java.lang.Throwable)
 286  
      */
 287  
     public void fatalError( String message, Throwable throwable )
 288  
     {
 289  
         // nop
 290  1
     }
 291  
 
 292  
     /**
 293  
      * @return <code>false</code>
 294  
      * @see org.codehaus.plexus.logging.Logger#isFatalErrorEnabled()
 295  
      */
 296  
     public boolean isFatalErrorEnabled()
 297  
     {
 298  1
         return false;
 299  
     }
 300  
 
 301  
     /**
 302  
      * @return <code>null</code>
 303  
      * @see org.codehaus.plexus.logging.Logger#getChildLogger(java.lang.String)
 304  
      */
 305  
     public Logger getChildLogger( String name )
 306  
     {
 307  1
         return null;
 308  
     }
 309  
 
 310  
     /**
 311  
      * @return <code>0</code>
 312  
      * @see org.codehaus.plexus.logging.Logger#getThreshold()
 313  
      */
 314  
     public int getThreshold()
 315  
     {
 316  1
         return 0;
 317  
     }
 318  
 
 319  
     /**
 320  
      * @return <code>null</code>
 321  
      * @see org.codehaus.plexus.logging.Logger#getName()
 322  
      */
 323  
     public String getName()
 324  
     {
 325  1
         return null;
 326  
     }
 327  
 }