Skip to content

Commit

Permalink
don't use 012, throw exception instead
Browse files Browse the repository at this point in the history
  • Loading branch information
liyuheng55555 committed Oct 18, 2023
1 parent 3d60fe0 commit ae068f4
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public enum DBSwitch {
DB_SelfCheck(DBType.SelfCheck, null, null);

private static final Logger LOGGER = LoggerFactory.getLogger(DBSwitch.class);
DBType type;
DBVersion version;
DBInsertMode insertMode;
final DBType type;
final DBVersion version;
final DBInsertMode insertMode;

DBSwitch(DBType Type, DBVersion version, DBInsertMode insertMode) {
this.type = Type;
Expand All @@ -100,9 +100,7 @@ public static DBSwitch getDBType(String dbSwitch) {
return db;
}
}
DBSwitch db = DBSwitch.DB_IOT_012_SESSION_BY_TABLET;
LOGGER.warn("Using default DBType: " + db);
return db;
throw new RuntimeException(String.format("Parameter dbSwitch %s is not supported", dbSwitch));
}

@Override
Expand Down

0 comments on commit ae068f4

Please sign in to comment.