You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2022/03/09 15:21:40 UTC

[myfaces-tobago] branch tobago-5.x updated: checkstyle

This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch tobago-5.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/tobago-5.x by this push:
     new dd59d4d  checkstyle
dd59d4d is described below

commit dd59d4df49a3d5cdfdd4388a7664c6fc2dbb3c14
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Wed Mar 9 16:17:38 2022 +0100

    checkstyle
---
 .../main/java/org/apache/myfaces/tobago/context/TobagoContext.java   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoContext.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoContext.java
index fc3a971..bdcde17 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoContext.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/context/TobagoContext.java
@@ -90,14 +90,13 @@ public class TobagoContext implements Serializable {
 
       final String themeName;
       final Object request = externalContext.getRequest();
-      final TobagoConfig tobagoConfig = getTobagoConfig();
-      if (request instanceof HttpServletRequest && tobagoConfig.isThemeCookie()) {
+      if (request instanceof HttpServletRequest && getTobagoConfig().isThemeCookie()) {
         themeName = CookieUtils.getThemeNameFromCookie((HttpServletRequest) request);
       } else {
         themeName = null;
       }
 
-      theme = tobagoConfig.getTheme(themeName);
+      theme = getTobagoConfig().getTheme(themeName);
       if (LOG.isDebugEnabled()) {
         LOG.debug("theme='{}'", theme.getName());
       }