From: Roland Häder Date: Sun, 25 Sep 2022 20:43:26 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7baa01527f2ca24bc2f2de030ad4ab46d1052ae0;p=jjobs-war.git Please cherry-pick: - no need for local variable "isAjax" --- diff --git a/src/java/org/mxchange/jjobs/filter/JobsNoCacheFilter.java b/src/java/org/mxchange/jjobs/filter/JobsNoCacheFilter.java index df5acb2a..b42f947a 100644 --- a/src/java/org/mxchange/jjobs/filter/JobsNoCacheFilter.java +++ b/src/java/org/mxchange/jjobs/filter/JobsNoCacheFilter.java @@ -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 }