From e2ae8efa37fc505c2532606886d122f0cd91ac7d Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 9 Aug 2016 22:19:49 +0200 Subject: [PATCH] Use own method getStringContextParameter() for a bit encapsulation and DRY: MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit DRY = Don't Repeat Yourself (avoid duplicate code which means duplicated maintenance of code) Signed-off-by: Roland Häder --- src/java/org/mxchange/jjobs/beans/BaseJobsController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/mxchange/jjobs/beans/BaseJobsController.java b/src/java/org/mxchange/jjobs/beans/BaseJobsController.java index f9a5adde..2a4a4ebb 100644 --- a/src/java/org/mxchange/jjobs/beans/BaseJobsController.java +++ b/src/java/org/mxchange/jjobs/beans/BaseJobsController.java @@ -92,7 +92,7 @@ public abstract class BaseJobsController implements Serializable { } // Try to get context parameter - String contextParameter = FacesContext.getCurrentInstance().getExternalContext().getInitParameter(String.format("is_debug_%s_enabled", controllerName)); //NOI18N + String contextParameter = this.getStringContextParameter(String.format("is_debug_%s_enabled", controllerName)); //NOI18N // Is it set and true? boolean isEnabled = ((contextParameter instanceof String) && (contextParameter.equals("true"))); //NOI18N -- 2.39.5