You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2010/11/14 04:08:30 UTC

svn commit: r1034927 - /click/trunk/click/framework/src/org/apache/click/Context.java

Author: sabob
Date: Sun Nov 14 03:08:29 2010
New Revision: 1034927

URL: http://svn.apache.org/viewvc?rev=1034927&view=rev
Log:
cleanup  variable name

Modified:
    click/trunk/click/framework/src/org/apache/click/Context.java

Modified: click/trunk/click/framework/src/org/apache/click/Context.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/Context.java?rev=1034927&r1=1034926&r2=1034927&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/Context.java (original)
+++ click/trunk/click/framework/src/org/apache/click/Context.java Sun Nov 14 03:08:29 2010
@@ -60,8 +60,8 @@ public class Context {
      */
     static final String CONTEXT_FATAL_ERROR = "_context_fatal_error";
 
-    /** The thread local context. */
-    private static final ThreadLocal<ContextStack> THREAD_LOCAL_CONTEXT = new ThreadLocal<ContextStack>();
+    /** The thread local context stack. */
+    private static final ThreadLocal<ContextStack> THREAD_LOCAL_CONTEXT_STACK = new ThreadLocal<ContextStack>();
 
     // ----------------------------------------------------- Instance Variables
 
@@ -199,7 +199,7 @@ public class Context {
      * false otherwise
      */
     public static boolean hasThreadLocalContext() {
-        ContextStack contextStack = THREAD_LOCAL_CONTEXT.get();
+        ContextStack contextStack = THREAD_LOCAL_CONTEXT_STACK.get();
         if (contextStack == null) {
             return false;
         }
@@ -852,11 +852,11 @@ public class Context {
      * @return stack data structure where Context's are stored
      */
     static ContextStack getContextStack() {
-        ContextStack contextStack = THREAD_LOCAL_CONTEXT.get();
+        ContextStack contextStack = THREAD_LOCAL_CONTEXT_STACK.get();
 
         if (contextStack == null) {
             contextStack = new ContextStack(2);
-            THREAD_LOCAL_CONTEXT.set(contextStack);
+            THREAD_LOCAL_CONTEXT_STACK.set(contextStack);
         }
 
         return contextStack;
@@ -881,7 +881,7 @@ public class Context {
         Context context = contextStack.pop();
 
         if (contextStack.isEmpty()) {
-            THREAD_LOCAL_CONTEXT.remove();
+            THREAD_LOCAL_CONTEXT_STACK.remove();
         }
 
         return context;