From 00d5c4e6b718a2139936aa7c540cfa236e4540a2 Mon Sep 17 00:00:00 2001 From: Tomoyuki MORITA Date: Wed, 12 Jun 2024 15:31:00 -0700 Subject: [PATCH] Fix code style issue (#2745) Signed-off-by: Tomoyuki Morita --- .../org/opensearch/sql/datasource/model/DataSourceType.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"); } } }