You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by vo...@apache.org on 2023/11/22 03:07:03 UTC

(myfaces) branch 4.1.x updated: Fix static pattern match error for 'warning' variable

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

volosied pushed a commit to branch 4.1.x
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/4.1.x by this push:
     new 955c95484 Fix static pattern match error for 'warning' variable
955c95484 is described below

commit 955c954843a773f9ffae4f8c6d66fcf1771c5274
Author: Volodymyr Siedlecki <vo...@gmail.com>
AuthorDate: Tue Nov 21 22:06:40 2023 -0500

    Fix static pattern match error for 'warning' variable
---
 .../myfaces/view/facelets/tag/composite/ExtensionHandler.java       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/composite/ExtensionHandler.java b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/composite/ExtensionHandler.java
index 12810ddb7..d2ab114b2 100644
--- a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/composite/ExtensionHandler.java
+++ b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/composite/ExtensionHandler.java
@@ -41,7 +41,7 @@ public class ExtensionHandler extends TagHandler
 {
 
     // Log warning once rather than every time the page is accessed
-    private static boolean WARNING_LOGGED = false;
+    private static boolean warned = false;
 
     private static final Logger log = Logger.getLogger(ExtensionHandler.class.getName());
     
@@ -53,10 +53,10 @@ public class ExtensionHandler extends TagHandler
     @Override
     public void apply(FaceletContext ctx, UIComponent parent) throws IOException
     {
-        if (log.isLoggable(Level.WARNING) && !WARNING_LOGGED)
+        if (log.isLoggable(Level.WARNING) && !warned)
         {
                 log.warning("The tag composite:extension is deprecated as of 4.1.");
-                WARNING_LOGGED = true;
+                warned = true;
         }
         // TODO: In theory the xml data inside this tag should be saved,
         // but the spec does not say where and how this should be done.