Changeset 1579

Show
Ignore:
Timestamp:
12/07/09 16:45:57 (2 years ago)
Author:
amandel
Message:

Address findings introduced with last commit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/java/org/jcoderz/commons/LogThreadContext.java

    r1577 r1579  
    4848 * @author Andreas Mandel 
    4949 */ 
    50 public class LogThreadContext 
     50public final class LogThreadContext 
    5151{ 
    5252    private static final ThreadLocal TREAD_CONTEXT = new ThreadLocal() 
     
    5757        } 
    5858    }; 
     59     
     60    private LogThreadContext () 
     61    { 
     62        // No public instances 
     63    } 
    5964     
    6065    /** 
     
    6873     *  for this key, or null if no such value was stored. 
    6974     */ 
    70     public static String put(String key, String value) 
     75    public static String put (String key, String value) 
    7176    { 
    7277        return ObjectUtil.toString(get().put(key, value)); 
     
    8085     *  if the selected parameter is not set. 
    8186     */ 
    82     public static String get(String key) 
     87    public static String get (String key) 
    8388    { 
    8489        return ObjectUtil.toString(get().get(key)); 
     
    9196     *  if the selected parameter is not set. 
    9297     */ 
    93     public static String remove(String key) 
     98    public static String remove (String key) 
    9499    { 
    95100        return ObjectUtil.toString(get().remove(key)); 
     
    103108     * parameters of the current thread. 
    104109     */ 
    105     public static Map/*<String,String>*/ get() 
     110    public static Map/*<String,String>*/ get () 
    106111    { 
    107112        return (Map) TREAD_CONTEXT.get();