[jboss-cvs] jboss-seam/src/main/org/jboss/seam/log ...

Shane Bryzak Shane_Bryzak at symantec.com
Wed Dec 20 21:38:27 EST 2006


  User: sbryzak2
  Date: 06/12/20 21:38:27

  Modified:    src/main/org/jboss/seam/log  LogImpl.java
  Log:
  fixed compiler warnings
  
  Revision  Changes    Path
  1.9       +159 -187  jboss-seam/src/main/org/jboss/seam/log/LogImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: LogImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/log/LogImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- LogImpl.java	16 Dec 2006 02:16:28 -0000	1.8
  +++ LogImpl.java	21 Dec 2006 02:38:27 -0000	1.9
  @@ -1,12 +1,9 @@
   package org.jboss.seam.log;
  -
   import java.io.Externalizable;
   import java.io.IOException;
   import java.io.ObjectInput;
   import java.io.ObjectOutput;
  -
   import org.jboss.seam.core.Interpolator;
  -
   /**
    * Implementation of the Log interface using commons logging.
    * 
  @@ -14,48 +11,39 @@
    */
   public class LogImpl implements Log, Externalizable
   {
  -   
  +   private static final long serialVersionUID = -1664298172030714342L;
      private transient LogProvider log;
      private String category;
  -
      public LogImpl() {} //for Externalizable
  -
      LogImpl(String category)
      {
         this.category = category;
         this.log = Logging.getLogProvider(category);
      }
  -
      public boolean isDebugEnabled()
      {
         return log.isDebugEnabled();
      }
  -
      public boolean isErrorEnabled()
      {
         return log.isErrorEnabled();
      }
  -
      public boolean isFatalEnabled()
      {
         return log.isFatalEnabled();
      }
  -
      public boolean isInfoEnabled()
      {
         return log.isInfoEnabled();
      }
  -
      public boolean isTraceEnabled()
      {
         return log.isTraceEnabled();
      }
  -
      public boolean isWarnEnabled()
      {
         return log.isWarnEnabled();
      }
  -
      public void trace(Object object, Object... params)
      {
         if ( isTraceEnabled() )
  @@ -63,7 +51,6 @@
            log.trace(  interpolate(object, params) );
         }
      }
  -
      public void trace(Object object, Throwable t, Object... params)
      {
         if ( isTraceEnabled() )
  @@ -71,7 +58,6 @@
            log.trace(  interpolate(object, params), t );
         }
      }
  -
      public void debug(Object object, Object... params)
      {
         if ( isDebugEnabled() )
  @@ -79,7 +65,6 @@
            log.debug(  interpolate(object, params) );
         }
      }
  -
      public void debug(Object object, Throwable t, Object... params)
      {
         if ( isDebugEnabled() )
  @@ -87,7 +72,6 @@
            log.debug(  interpolate(object, params), t );
         }
      }
  -
      public void info(Object object, Object... params)
      {
         if ( isInfoEnabled() )
  @@ -95,7 +79,6 @@
            log.info( interpolate(object, params) );
         }
      }
  -
      public void info(Object object, Throwable t, Object... params)
      {
         if ( isInfoEnabled() )
  @@ -103,7 +86,6 @@
            log.info( interpolate(object, params), t );
         }
      }
  -
      public void warn(Object object, Object... params)
      {
         if ( isWarnEnabled() )
  @@ -111,7 +93,6 @@
            log.warn( interpolate(object, params) );
         }
      }
  -
      public void warn(Object object, Throwable t, Object... params)
      {
         if ( isWarnEnabled() )
  @@ -119,7 +100,6 @@
            log.warn( interpolate(object, params), t );
         }
      }
  -
      public void error(Object object, Object... params)
      {
         if ( isErrorEnabled() )
  @@ -127,7 +107,6 @@
            log.error( interpolate(object, params) );
         }
      }
  -
      public void error(Object object, Throwable t, Object... params)
      {
         if ( isErrorEnabled() )
  @@ -135,7 +114,6 @@
            log.error( interpolate(object, params), t );
         }
      }
  -
      public void fatal(Object object, Object... params)
      {
         if ( isFatalEnabled() )
  @@ -143,7 +121,6 @@
            log.fatal( interpolate(object, params) );
         }
      }
  -
      public void fatal(Object object, Throwable t, Object... params)
      {
         if ( isFatalEnabled() )
  @@ -163,13 +140,11 @@
            return object;
         }
      }
  -
      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      {
         category = (String) in.readObject();
         log = Logging.getLogProvider(category);
      }
  -
      public void writeExternal(ObjectOutput out) throws IOException
      {
         out.writeObject(category);
  @@ -181,7 +156,4 @@
         ois.defaultReadObject();
         log = LogFactory.getLog(category);
      }*/
  -   
  -   
  -
   }
  
  
  



More information about the jboss-cvs-commits mailing list