Skip to content

Commit

Permalink
cleanup stray fqcn
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
  • Loading branch information
nknize committed Aug 4, 2023
1 parent d9deacc commit b40332f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public static FileInfo fromXContent(XContentParser parser) throws IOException {
}

// Verify that file information is complete
if (name == null || org.opensearch.core.common.Strings.validFileName(name) == false) {
if (name == null || Strings.validFileName(name) == false) {
throw new OpenSearchParseException("missing or invalid file name [" + name + "]");
} else if (physicalName == null || Strings.validFileName(physicalName) == false) {
throw new OpenSearchParseException("missing or invalid physical file name [" + physicalName + "]");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public ClusterState execute(ClusterState currentState) {
"No indices in the source snapshot ["
+ sourceSnapshotId
+ "] matched requested pattern ["
+ org.opensearch.core.common.Strings.arrayToCommaDelimitedString(request.indices())
+ Strings.arrayToCommaDelimitedString(request.indices())
+ "]"
);
}
Expand Down Expand Up @@ -823,7 +823,7 @@ private static void validate(String repositoryName, String snapshotName, Cluster
}

private static void validate(final String repositoryName, final String snapshotName) {
if (org.opensearch.core.common.Strings.hasLength(snapshotName) == false) {
if (Strings.hasLength(snapshotName) == false) {
throw new InvalidSnapshotNameException(repositoryName, snapshotName, "cannot be empty");
}
if (snapshotName.contains(" ")) {
Expand All @@ -845,7 +845,7 @@ private static void validate(final String repositoryName, final String snapshotN
throw new InvalidSnapshotNameException(
repositoryName,
snapshotName,
"must not contain the following characters " + org.opensearch.core.common.Strings.INVALID_FILENAME_CHARS
"must not contain the following characters " + Strings.INVALID_FILENAME_CHARS
);
}
}
Expand Down Expand Up @@ -1806,7 +1806,7 @@ public void deleteSnapshots(final DeleteSnapshotRequest request, final ActionLis
logger.info(
() -> new ParameterizedMessage(
"deleting snapshots [{}] from repository [{}]",
org.opensearch.core.common.Strings.arrayToCommaDelimitedString(snapshotNames),
Strings.arrayToCommaDelimitedString(snapshotNames),
repoName
)
);
Expand Down

0 comments on commit b40332f

Please sign in to comment.