diff --git a/core/src/main/java/org/opensearch/sql/datasource/model/DataSourceType.java b/core/src/main/java/org/opensearch/sql/datasource/model/DataSourceType.java index a557746d76..c727c3c531 100644 --- a/core/src/main/java/org/opensearch/sql/datasource/model/DataSourceType.java +++ b/core/src/main/java/org/opensearch/sql/datasource/model/DataSourceType.java @@ -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"); } } }