diff --git a/bundles/core/pom.xml b/bundles/core/pom.xml
index 8198158676..a6eb3fd450 100644
--- a/bundles/core/pom.xml
+++ b/bundles/core/pom.xml
@@ -371,6 +371,10 @@
commons-collections
commons-collections
+
+ org.apache.commons
+ commons-collections4
+
org.slf4j
slf4j-api
diff --git a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/Utils.java b/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/Utils.java
index 4a3a04723a..408ffc5357 100644
--- a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/Utils.java
+++ b/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/Utils.java
@@ -15,6 +15,7 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
package com.adobe.cq.wcm.core.components.internal;
+import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
@@ -54,7 +55,6 @@
import com.day.cq.wcm.api.designer.Designer;
import com.day.cq.wcm.api.designer.Style;
import com.day.cq.wcm.foundation.AllowedComponentList;
-import com.google.common.collect.ImmutableSet;
import static com.adobe.cq.wcm.core.components.models.Image.PN_ALT_VALUE_FROM_DAM;
import static com.adobe.cq.wcm.core.components.models.Image.PN_ALT_VALUE_FROM_PAGE_IMAGE;
@@ -65,12 +65,12 @@ public class Utils {
private static final Logger LOGGER = LoggerFactory.getLogger(Utils.class);
- private static final Set INTERNAL_PARAMETER = ImmutableSet.of(
- ":formstart",
- "_charset_",
- ":redirect",
- ":cq_csrf_token"
- );
+ private static final Set INTERNAL_PARAMETER = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(
+ ":formstart",
+ "_charset_",
+ ":redirect",
+ ":cq_csrf_token"
+ )));
private Utils() {
}
diff --git a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/helper/image/AdaptiveImageHelper.java b/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/helper/image/AdaptiveImageHelper.java
index a5930e5086..cdd3e60c97 100644
--- a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/helper/image/AdaptiveImageHelper.java
+++ b/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/helper/image/AdaptiveImageHelper.java
@@ -32,7 +32,6 @@
import com.day.cq.wcm.api.Page;
import com.day.cq.wcm.api.PageManager;
-import com.google.common.base.Joiner;
public class AdaptiveImageHelper {
@@ -124,12 +123,12 @@ public static String getRedirectLocation(SlingHttpServletRequest request, long l
}
if (lastModifiedSuffix > 0) {
suffix = StringUtils.replace(suffix, String.valueOf(lastModifiedSuffix), String.valueOf(lastModifiedEpoch));
- redirectLocation = Joiner.on('.').join(Text.escapePath(request.getContextPath() + requestPathInfo.getResourcePath()),
- requestPathInfo.getSelectorString(), requestPathInfo.getExtension() + Text.escapePath(suffix));
+ redirectLocation = Text.escapePath(request.getContextPath() + requestPathInfo.getResourcePath()) + "." +
+ requestPathInfo.getSelectorString() + "." + requestPathInfo.getExtension() + Text.escapePath(suffix);
} else if (request.getResource().isResourceType(IMAGE_RESOURCE_TYPE)) {
- redirectLocation = Joiner.on('.').join(Text.escapePath(request.getContextPath() + requestPathInfo.getResourcePath()),
- requestPathInfo.getSelectorString(), requestPathInfo.getExtension() + "/" + lastModifiedEpoch,
- requestPathInfo.getExtension());
+ redirectLocation = Text.escapePath(request.getContextPath() + requestPathInfo.getResourcePath()) + "." +
+ requestPathInfo.getSelectorString() + "." + requestPathInfo.getExtension() + "/" +
+ lastModifiedEpoch + "." + requestPathInfo.getExtension();
} else {
String resourcePath = request.getPathInfo();
String extension = FilenameUtils.getExtension(resourcePath);
diff --git a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/jackson/LinkHtmlAttributesSerializer.java b/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/jackson/LinkHtmlAttributesSerializer.java
index 0c8255d881..4ed9afb6b5 100644
--- a/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/jackson/LinkHtmlAttributesSerializer.java
+++ b/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/jackson/LinkHtmlAttributesSerializer.java
@@ -17,6 +17,7 @@
package com.adobe.cq.wcm.core.components.internal.jackson;
import java.io.IOException;
+import java.util.Collections;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
@@ -26,14 +27,13 @@
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-import com.google.common.collect.ImmutableSet;
public class LinkHtmlAttributesSerializer extends StdSerializer
+
+ org.apache.commons
+ commons-collections4
+ 4.4
+ provided
+
+
org.jetbrains
annotations