geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r697835 - /geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RemoteShellContextHolder.java
Date Mon, 22 Sep 2008 14:08:05 GMT
Author: jdillon
Date: Mon Sep 22 07:08:04 2008
New Revision: 697835

URL: http://svn.apache.org/viewvc?rev=697835&view=rev
Log:
Use holder.remove() instead of holder.set(null) to clear

Modified:
    geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RemoteShellContextHolder.java

Modified: geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RemoteShellContextHolder.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RemoteShellContextHolder.java?rev=697835&r1=697834&r2=697835&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RemoteShellContextHolder.java
(original)
+++ geronimo/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RemoteShellContextHolder.java
Mon Sep 22 07:08:04 2008
@@ -31,7 +31,7 @@
     private static final InheritableThreadLocal<ShellContext> holder = new InheritableThreadLocal<ShellContext>();
 
     public static void clearContext() {
-        holder.set(null);
+        holder.remove();
     }
 
     public static void setContext(final ShellContext context) {



Mime
View raw message