From 6abec92a1aa2b6b9d4be690e07117d61b91b03c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Fr=C3=BChbeck?= Date: Thu, 29 Feb 2024 07:56:18 +0100 Subject: [PATCH] replace myfaces-api Assert --- .../deltaspike/jsf/impl/util/ClientWindowHelper.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java index ded719690..8eac7641a 100644 --- a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java +++ b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java @@ -26,17 +26,12 @@ import jakarta.faces.render.ResponseStateManager; import jakarta.servlet.http.HttpServletResponse; import org.apache.deltaspike.jsf.api.config.base.JsfBaseConfig; -import org.apache.myfaces.core.api.shared.lang.Assert; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.logging.Level; import java.util.logging.Logger; @@ -85,7 +80,10 @@ public static String constructRequestUrl(FacesContext facesContext, ExternalCont // copied from MyFaces private static String encodeURL(String baseUrl, FacesContext facesContext, String encoding) { - Assert.notNull(baseUrl, "url"); + if (baseUrl == null) + { + throw new NullPointerException("baseUrl is null"); + } String fragment = null; String queryString = null;