Skip to content

Commit

Permalink
Fix code style issue (opensearch-project#2745)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 authored and jzonthemtn committed Aug 28, 2024
1 parent c86fd87 commit 0d59a45
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ public String toString() {
}

/** Register DataSourceType to be used in fromString method */
public static void register(DataSourceType ... dataSourceTypes) {
public static void register(DataSourceType... dataSourceTypes) {
for (DataSourceType type : dataSourceTypes) {
String upperCaseName = type.name().toUpperCase();
if (!knownValues.containsKey(upperCaseName)) {
knownValues.put(type.name().toUpperCase(), type);
} else {
throw new IllegalArgumentException("DataSourceType with name " + type.name() + " already exists");
throw new IllegalArgumentException(
"DataSourceType with name " + type.name() + " already exists");
}
}
}
Expand Down

0 comments on commit 0d59a45

Please sign in to comment.