Skip to content

Commit

Permalink
Fix code style issue (#2745)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
(cherry picked from commit 00d5c4e)
  • Loading branch information
ykmr1224 committed Jun 12, 2024
1 parent 2854240 commit c475d5d
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 c475d5d

Please sign in to comment.