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]>
  • Loading branch information
ykmr1224 authored Jun 12, 2024
1 parent 1d703e8 commit 00d5c4e
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 00d5c4e

Please sign in to comment.