]> git.mxchange.org Git - jjobs-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:56 +0000 (22:43 +0200)
- no need for local variable "isAjax"

src/java/org/mxchange/jjobs/filter/JobsNoCacheFilter.java

index df5acb2affd2390b701cb711033798e1631f3202..b42f947aed79d6fc810c0e3b88b1d7edb490e783 100644 (file)
@@ -58,11 +58,8 @@ public class JobsNoCacheFilter 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
                        }