dion        2003/07/16 18:06:45

  Modified:    src/java/org/apache/maven DVSLFormatter.java
  Log:
  Rename LOG to log and do some docs
  
  Revision  Changes    Path
  1.11      +9 -9      maven/src/java/org/apache/maven/DVSLFormatter.java
  
  Index: DVSLFormatter.java
  ===================================================================
  RCS file: /home/cvs/maven/src/java/org/apache/maven/DVSLFormatter.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DVSLFormatter.java        12 Apr 2003 00:02:05 -0000      1.10
  +++ DVSLFormatter.java        17 Jul 2003 01:06:45 -0000      1.11
  @@ -76,11 +76,11 @@
        * Instance of a formatter.
        */
       private static DecimalFormat formatter = new DecimalFormat();
  -    
  +
       /**
        * Log for debug output
        */
  -    private static Log LOG = LogFactory.getLog(DVSLFormatter.class);
  +    private static Log log = LogFactory.getLog(DVSLFormatter.class);
   
       /**
        * Formats a string as a number using the specified pattern.
  @@ -96,9 +96,9 @@
        * @throws IllegalArgumentException If an invalid pattern is
        * specified.
        */
  -    public static final String formatNumber( String value, String pattern )
  +    public static final String formatNumber( final String value, final String 
pattern )
       {
  -        LOG.debug("value = '" + value + "', pattern = '" + pattern + "'");
  +        log.debug("value = '" + value + "', pattern = '" + pattern + "'");
           if ( pattern == null || value == null )
           {
               return "<error formatting: '" + value + "' with '" + pattern + "'>";
  @@ -110,7 +110,7 @@
           {
               formatter = new DecimalFormat(pattern);
               Number valueAsNumber = Double.valueOf(value.trim());
  -            
  +
               if (pattern.indexOf(".") != -1 || pattern.indexOf("%") != -1)
               {
                   // parse as a decimal
  @@ -122,15 +122,15 @@
                   formatter.setParseIntegerOnly(true);
                   ret = formatter.format(valueAsNumber.longValue());
               }
  -            LOG.debug("ret='" + ret + "'");
  +            log.debug("ret='" + ret + "'");
   
           }
           catch ( Exception e )
           {
  -            LOG.error("<error formatting: '" + value + "' with '" + pattern + "'>", 
e);
  +            log.error("<error formatting: '" + value + "' with '" + pattern + "'>", 
e);
               return "<error formatting: '" + value + "' with '" + pattern + "'>";
           }
   
           return ret;
       }
  -}
  \ No newline at end of file
  +}
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to