From 8560349a595da785bb8d671608eb40b9c65e7645 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Wed, 27 Jul 2022 12:15:16 +0200 Subject: [PATCH] org.sqlite.SQLiteConfig.setDatePrecision(String) throws unnecessary SQLException (#467) This fixes #467 --- src/main/java/org/sqlite/SQLiteConfig.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/sqlite/SQLiteConfig.java b/src/main/java/org/sqlite/SQLiteConfig.java index c68abc8fcd..d8acf079eb 100755 --- a/src/main/java/org/sqlite/SQLiteConfig.java +++ b/src/main/java/org/sqlite/SQLiteConfig.java @@ -1049,11 +1049,8 @@ public static DatePrecision getPrecision(String precision) { } } - /** - * @param datePrecision One of SECONDS or MILLISECONDS - * @throws SQLException - */ - public void setDatePrecision(String datePrecision) throws SQLException { + /** @param datePrecision One of SECONDS or MILLISECONDS */ + public void setDatePrecision(String datePrecision) { this.defaultConnectionConfig.setDatePrecision(DatePrecision.getPrecision(datePrecision)); }