From eba60585ab49e40dea97d5e8e403d72d5115e123 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Thu, 28 Mar 2024 10:53:41 +0530 Subject: [PATCH] chore: Move StringUtils to interfaces module (#32129) This is a utility class with static methods, and we need them in domain classes in the `interfaces` module as well. --- .../main/java/com/appsmith/external}/helpers/StringUtils.java | 2 +- .../src/main/java/com/appsmith/server/domains/Application.java | 2 +- .../java/com/appsmith/server/domains/ce/ActionCollectionCE.java | 2 +- .../main/java/com/appsmith/server/domains/ce/NewActionCE.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename app/server/{appsmith-server/src/main/java/com/appsmith/server => appsmith-interfaces/src/main/java/com/appsmith/external}/helpers/StringUtils.java (80%) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/StringUtils.java b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/StringUtils.java similarity index 80% rename from app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/StringUtils.java rename to app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/StringUtils.java index 98b656ace6..3fe5ea9686 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/StringUtils.java +++ b/app/server/appsmith-interfaces/src/main/java/com/appsmith/external/helpers/StringUtils.java @@ -1,4 +1,4 @@ -package com.appsmith.server.helpers; +package com.appsmith.external.helpers; public class StringUtils { private StringUtils() {} diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/Application.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/Application.java index a6c2372de2..54f1dccf6c 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/Application.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/Application.java @@ -25,10 +25,10 @@ import java.util.List; import java.util.Map; import java.util.Set; +import static com.appsmith.external.helpers.StringUtils.dotted; import static com.appsmith.server.constants.ResourceModes.EDIT; import static com.appsmith.server.constants.ResourceModes.VIEW; import static com.appsmith.server.helpers.DateUtils.ISO_FORMATTER; -import static com.appsmith.server.helpers.StringUtils.dotted; @Getter @Setter diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ce/ActionCollectionCE.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ce/ActionCollectionCE.java index 6c963393de..3a237198a2 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ce/ActionCollectionCE.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ce/ActionCollectionCE.java @@ -10,7 +10,7 @@ import lombok.Setter; import lombok.ToString; import lombok.experimental.FieldNameConstants; -import static com.appsmith.server.helpers.StringUtils.dotted; +import static com.appsmith.external.helpers.StringUtils.dotted; /** * This class represents a collection of actions that may or may not belong to the same plugin. diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ce/NewActionCE.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ce/NewActionCE.java index d8a0e9695b..e07d354414 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ce/NewActionCE.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/domains/ce/NewActionCE.java @@ -13,7 +13,7 @@ import lombok.Setter; import lombok.ToString; import lombok.experimental.FieldNameConstants; -import static com.appsmith.server.helpers.StringUtils.dotted; +import static com.appsmith.external.helpers.StringUtils.dotted; @Getter @Setter