creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pottlin...@apache.org
Subject svn commit: r1618761 - /creadur/whisker/trunk/apache-whisker-plugin4maven/src/main/java/org/apache/creadur/whisker/plugin/maven/MojoToJCLLog.java
Date Mon, 18 Aug 2014 22:21:30 GMT
Author: pottlinger
Date: Mon Aug 18 22:21:30 2014
New Revision: 1618761

URL: http://svn.apache.org/r1618761
Log:
Replacing deprecated Objects.toString() by ToStringBuilder.toString() from commons-lang3.


Modified:
    creadur/whisker/trunk/apache-whisker-plugin4maven/src/main/java/org/apache/creadur/whisker/plugin/maven/MojoToJCLLog.java

Modified: creadur/whisker/trunk/apache-whisker-plugin4maven/src/main/java/org/apache/creadur/whisker/plugin/maven/MojoToJCLLog.java
URL: http://svn.apache.org/viewvc/creadur/whisker/trunk/apache-whisker-plugin4maven/src/main/java/org/apache/creadur/whisker/plugin/maven/MojoToJCLLog.java?rev=1618761&r1=1618760&r2=1618761&view=diff
==============================================================================
--- creadur/whisker/trunk/apache-whisker-plugin4maven/src/main/java/org/apache/creadur/whisker/plugin/maven/MojoToJCLLog.java
(original)
+++ creadur/whisker/trunk/apache-whisker-plugin4maven/src/main/java/org/apache/creadur/whisker/plugin/maven/MojoToJCLLog.java
Mon Aug 18 22:21:30 2014
@@ -18,7 +18,7 @@
  */
 package org.apache.creadur.whisker.plugin.maven;
 
-import org.apache.commons.lang3.ObjectUtils;
+import org.apache.commons.lang3.builder.ToStringBuilder;
 import org.apache.maven.plugin.logging.Log;
 
 /**
@@ -44,7 +44,7 @@ public class MojoToJCLLog implements org
      * @see org.apache.commons.logging.Log#debug(java.lang.Object)
      */
     public void debug(final Object message) {
-        log.debug(ObjectUtils.toString(message));
+        log.debug(new ToStringBuilder(message).toString());
     }
 
     /**
@@ -54,7 +54,7 @@ public class MojoToJCLLog implements org
      * @see org.apache.commons.logging.Log#debug(java.lang.Object, java.lang.Throwable)
      */
     public void debug(final Object message, final Throwable t) {
-        log.debug(ObjectUtils.toString(message), t);
+        log.debug(new ToStringBuilder(message).toString(), t);
     }
 
     /**
@@ -63,7 +63,7 @@ public class MojoToJCLLog implements org
      * @see org.apache.commons.logging.Log#error(java.lang.Object)
      */
     public void error(final Object message) {
-        log.error(ObjectUtils.toString(message));
+        log.error(new ToStringBuilder(message).toString());
     }
 
     /**
@@ -73,7 +73,7 @@ public class MojoToJCLLog implements org
      * @see org.apache.commons.logging.Log#error(java.lang.Object, java.lang.Throwable)
      */
     public void error(final Object message, final Throwable t) {
-        log.error(ObjectUtils.toString(message), t);
+        log.error(new ToStringBuilder(message).toString(), t);
     }
 
     /**
@@ -82,7 +82,7 @@ public class MojoToJCLLog implements org
      * @see org.apache.commons.logging.Log#fatal(java.lang.Object)
      */
     public void fatal(final Object message) {
-        log.error(ObjectUtils.toString(message));
+        log.error(new ToStringBuilder(message).toString());
     }
 
     /**
@@ -92,7 +92,7 @@ public class MojoToJCLLog implements org
      * @see org.apache.commons.logging.Log#fatal(java.lang.Object, java.lang.Throwable)
      */
     public void fatal(final Object message, final Throwable t) {
-        log.error(ObjectUtils.toString(message), t);
+        log.error(new ToStringBuilder(message).toString(), t);
     }
 
     /**
@@ -101,7 +101,7 @@ public class MojoToJCLLog implements org
      * @see org.apache.commons.logging.Log#info(java.lang.Object)
      */
     public void info(final Object message) {
-        log.info(ObjectUtils.toString(message));
+        log.info(new ToStringBuilder(message).toString());
     }
 
     /**
@@ -111,7 +111,7 @@ public class MojoToJCLLog implements org
      * @see org.apache.commons.logging.Log#info(java.lang.Object, java.lang.Throwable)
      */
     public void info(final Object message, final Throwable t) {
-        log.info(ObjectUtils.toString(message), t);
+        log.info(new ToStringBuilder(message).toString(), t);
     }
 
     /**
@@ -174,7 +174,7 @@ public class MojoToJCLLog implements org
      * @see org.apache.commons.logging.Log#trace(java.lang.Object)
      */
     public void trace(final Object message) {
-        log.debug(ObjectUtils.toString(message));
+        log.debug(new ToStringBuilder(message).toString());
     }
 
     /**
@@ -184,7 +184,7 @@ public class MojoToJCLLog implements org
      * @see org.apache.commons.logging.Log#trace(java.lang.Object, java.lang.Throwable)
      */
     public void trace(final Object message, final Throwable t) {
-        log.debug(ObjectUtils.toString(message), t);
+        log.debug(new ToStringBuilder(message).toString(), t);
     }
 
     /**
@@ -193,7 +193,7 @@ public class MojoToJCLLog implements org
      * @see org.apache.commons.logging.Log#warn(java.lang.Object)
      */
     public void warn(final Object message) {
-        log.warn(ObjectUtils.toString(message));
+        log.warn(new ToStringBuilder(message).toString());
     }
 
     /**
@@ -203,6 +203,6 @@ public class MojoToJCLLog implements org
      * @see org.apache.commons.logging.Log#warn(java.lang.Object, java.lang.Throwable)
      */
     public void warn(final Object message, final Throwable t) {
-        log.warn(ObjectUtils.toString(message), t);
+        log.warn(new ToStringBuilder(message).toString(), t);
     }
 }



Mime
View raw message