Skip to content

Commit

Permalink
Use constant for SearchConstants Path delimeter
Browse files Browse the repository at this point in the history
Signed-off-by: David Schwilk <david.schwilk@bosch.io>
  • Loading branch information
DerSchwilk committed Jun 3, 2022
1 parent 3fa7813 commit fd7e0ed
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,30 @@ public final class ThingsSearchConstants {
*/
public static final String CLUSTER_ROLE = "things-wildcard-search";

private static final String PATH_DELIMITER = "/";

@SuppressWarnings("squid:S1075")
private static final String USER_PATH = "/user";

/**
* Name of the search actor.
*/
public static final String ROOT_ACTOR_NAME = "thingsWildcardSearchRoot";

/**
* Path of the root actor.
*/
public static final String ROOT_ACTOR_PATH = USER_PATH + "/" + ROOT_ACTOR_NAME;
public static final String ROOT_ACTOR_PATH = USER_PATH + PATH_DELIMITER + ROOT_ACTOR_NAME;

/**
* Path of the search actor.
* Name of the search actor.
*/
public static final String SEARCH_ACTOR_NAME = "thingsSearch";
public static final String SEARCH_ACTOR_PATH = ROOT_ACTOR_PATH + "/" + SEARCH_ACTOR_NAME;

/**
* Path of the search actor.
*/
public static final String SEARCH_ACTOR_PATH = ROOT_ACTOR_PATH + PATH_DELIMITER + SEARCH_ACTOR_NAME;

/*
* Inhibit instantiation of this utility class.
Expand Down

0 comments on commit fd7e0ed

Please sign in to comment.