commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Fwd: svn commit: r1804943 - /commons/proper/discovery/trunk/src/main/java/org/apache/commons/discovery/log/SimpleLog.java
Date Sun, 13 Aug 2017 19:41:57 GMT
Good one!

Gary

---------- Forwarded message ----------
From: <dbrosius@apache.org>
Date: Aug 13, 2017 13:33
Subject: svn commit: r1804943 -
/commons/proper/discovery/trunk/src/main/java/org/apache/commons/discovery/log/SimpleLog.java
To: <commits@commons.apache.org>
Cc:

Author: dbrosius
> Date: Sun Aug 13 19:33:21 2017
> New Revision: 1804943
>
> URL: http://svn.apache.org/viewvc?rev=1804943&view=rev
> Log:
> use StringBuilder over StringBuffer
>
> Modified:
>     commons/proper/discovery/trunk/src/main/java/org/
> apache/commons/discovery/log/SimpleLog.java
>
> Modified: commons/proper/discovery/trunk/src/main/java/org/
> apache/commons/discovery/log/SimpleLog.java
> URL: http://svn.apache.org/viewvc/commons/proper/discovery/
> trunk/src/main/java/org/apache/commons/discovery/log/
> SimpleLog.java?rev=1804943&r1=1804942&r2=1804943&view=diff
> ============================================================
> ==================
> --- commons/proper/discovery/trunk/src/main/java/org/
> apache/commons/discovery/log/SimpleLog.java (original)
> +++ commons/proper/discovery/trunk/src/main/java/org/
> apache/commons/discovery/log/SimpleLog.java Sun Aug 13 19:33:21 2017
> @@ -197,8 +197,8 @@ public class SimpleLog implements Log {
>       * @param t The error cause, if any
>       */
>      protected void log(int type, Object message, Throwable t) {
> -        // use a string buffer for better performance
> -        StringBuffer buf = new StringBuffer();
> +        // use a string builder for better performance
> +        StringBuilder buf = new StringBuilder();
>
>          // append date-time if so configured
>          if(showDateTime) {
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message