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=828e43287c8da407db33b188340fdb9b17e805a2;p=jfinancials-war.git Please cherry-pick: - no need for local variable "isAjax" --- diff --git a/src/java/org/mxchange/jfinancials/filter/FinancialsNoCacheFilter.java b/src/java/org/mxchange/jfinancials/filter/FinancialsNoCacheFilter.java index edeac420..477f8400 100644 --- a/src/java/org/mxchange/jfinancials/filter/FinancialsNoCacheFilter.java +++ b/src/java/org/mxchange/jfinancials/filter/FinancialsNoCacheFilter.java @@ -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 }