diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-06-25 16:07:03 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-06-25 16:07:03 +0300 |
commit | 086a297997e82453eb3b3e0f2dddb856d0db5bcb (patch) | |
tree | db55a924d7283da990fb186a8977b64005350c37 /src/com/vaadin/Application.java | |
parent | 4a997b3d5334d07185011f62e5508a88abc370fc (diff) | |
download | vaadin-framework-086a297997e82453eb3b3e0f2dddb856d0db5bcb.tar.gz vaadin-framework-086a297997e82453eb3b3e0f2dddb856d0db5bcb.zip |
Rename setCurrentXyz() to setCurrent() (#9029)
Diffstat (limited to 'src/com/vaadin/Application.java')
-rw-r--r-- | src/com/vaadin/Application.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/vaadin/Application.java b/src/com/vaadin/Application.java index 3da314a11e..84a8df5053 100644 --- a/src/com/vaadin/Application.java +++ b/src/com/vaadin/Application.java @@ -2119,11 +2119,11 @@ public class Application implements Terminal.ErrorListener, Serializable { * @return the current application instance if available, otherwise * <code>null</code> * - * @see #setCurrentApplication(Application) + * @see #setCurrent(Application) * * @since 7.0 */ - public static Application getCurrentApplication() { + public static Application getCurrent() { return currentApplication.get(); } @@ -2139,12 +2139,12 @@ public class Application implements Terminal.ErrorListener, Serializable { * * @param application * - * @see #getCurrentApplication() + * @see #getCurrent() * @see ThreadLocal * * @since 7.0 */ - public static void setCurrentApplication(Application application) { + public static void setCurrent(Application application) { currentApplication.set(application); } @@ -2188,7 +2188,7 @@ public class Application implements Terminal.ErrorListener, Serializable { */ public Root getRootForRequest(WrappedRequest request) throws RootRequiresMoreInformationException { - Root root = Root.getCurrentRoot(); + Root root = Root.getCurrent(); if (root != null) { return root; } @@ -2240,7 +2240,7 @@ public class Application implements Terminal.ErrorListener, Serializable { } // Set thread local here so it is available in init - Root.setCurrentRoot(root); + Root.setCurrent(root); if (!initedRoots.contains(rootId)) { boolean initRequiresBrowserDetails = isRootPreserved() |