]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sun, 25 Sep 2022 20:43:26 +0000 (22:43 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 25 Sep 2022 20:43:26 +0000 (22:43 +0200)
- no need for local variable "isAjax"

src/java/org/mxchange/jfinancials/filter/FinancialsNoCacheFilter.java

index edeac4200ae80dc338ed31531790030d138255ab..477f8400b78cb887c326e31e6dd13cc8b2728261 100644 (file)
@@ -58,11 +58,8 @@ public class FinancialsNoCacheFilter implements Filter {
                        res.setHeader("Pragma", "no-cache"); // //NOI18N
                        res.setDateHeader("Expires", 0); // //NOI18N
 
-                       // Is AJAX given?
-                       final Boolean isAjax = "true".equals(req.getParameter("javax.faces.partial.ajax")); //NOI18N
-
                        // Is AJAX?
-                       if (isAjax) {
+                       if ("true".equals(req.getParameter("javax.faces.partial.ajax"))) {
                                // Set Accept header
                                res.setHeader("Accept", "text/xml"); //NOI18N
                        }