From 828e43287c8da407db33b188340fdb9b17e805a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 25 Sep 2022 22:43:26 +0200 Subject: [PATCH] Please cherry-pick: - no need for local variable "isAjax" --- .../mxchange/jfinancials/filter/FinancialsNoCacheFilter.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 } -- 2.39.5