From 5ac6c462cacdb38c1dd5804e3e9af026bade64c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mich=C3=A8le=20BARRE?= Date: Wed, 23 Sep 2020 07:46:53 +1100 Subject: [PATCH] fix imports due to change in schemacrawler --- pom.xml | 4 ++-- .../LinterColumnContentNotNormalized.java | 2 +- .../tool/linter/LinterColumnSize.java | 2 +- .../tool/linter/LinterCompressBlob.java | 23 ++++++------------- .../tool/linter/LinterForeignKeyName.java | 14 ++++------- .../tool/linter/LinterJsonContent.java | 18 +++++++-------- .../tool/linter/LinterLeftSpacePadding.java | 16 ++++++------- .../tool/linter/LinterRightSpacePadding.java | 16 ++++++------- .../tool/linter/LinterXmlContent.java | 18 ++++++--------- 9 files changed, 48 insertions(+), 65 deletions(-) diff --git a/pom.xml b/pom.xml index 08a42d2b..c7fe75fa 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ License along with this program. If not, see 4.0.0 io.github.mbarre schemacrawler-additional-lints - 1.06.01 + 1.06.02 Additional SchemaCrawler Lints Some additional lints for Schemacrawler 2015 @@ -135,7 +135,7 @@ License along with this program. If not, see UTF-8 - 16.9.4 + 16.9.5 1.8 8 2.3.2 diff --git a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterColumnContentNotNormalized.java b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterColumnContentNotNormalized.java index ba3dcc8a..3aac49a8 100644 --- a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterColumnContentNotNormalized.java +++ b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterColumnContentNotNormalized.java @@ -25,10 +25,10 @@ import io.github.mbarre.schemacrawler.utils.LintUtils; import schemacrawler.schema.Column; import schemacrawler.schema.Table; -import schemacrawler.schemacrawler.Config; import schemacrawler.schemacrawler.SchemaCrawlerException; import schemacrawler.tools.lint.BaseLinter; import schemacrawler.tools.lint.LintSeverity; +import schemacrawler.tools.options.Config; import java.sql.Connection; import java.sql.ResultSet; diff --git a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterColumnSize.java b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterColumnSize.java index f309e92c..21a38147 100644 --- a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterColumnSize.java +++ b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterColumnSize.java @@ -25,10 +25,10 @@ import io.github.mbarre.schemacrawler.utils.LintUtils; import schemacrawler.schema.Column; import schemacrawler.schema.Table; -import schemacrawler.schemacrawler.Config; import schemacrawler.schemacrawler.SchemaCrawlerException; import schemacrawler.tools.lint.BaseLinter; import schemacrawler.tools.lint.LintSeverity; +import schemacrawler.tools.options.Config; import java.sql.Connection; import java.sql.ResultSet; diff --git a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterCompressBlob.java b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterCompressBlob.java index bd7f9767..e1e64d8e 100644 --- a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterCompressBlob.java +++ b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterCompressBlob.java @@ -22,21 +22,6 @@ * #L% */ -import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.sql.Connection; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Statement; -import java.sql.Types; -import java.util.List; -import java.util.logging.Level; -import java.util.logging.Logger; - import org.apache.commons.compress.archivers.ArchiveException; import org.apache.commons.compress.archivers.ArchiveOutputStream; import org.apache.commons.compress.archivers.ArchiveStreamFactory; @@ -44,10 +29,16 @@ import org.apache.commons.io.IOUtils; import schemacrawler.schema.Column; import schemacrawler.schema.Table; -import schemacrawler.schemacrawler.Config; import schemacrawler.schemacrawler.SchemaCrawlerException; import schemacrawler.tools.lint.BaseLinter; import schemacrawler.tools.lint.LintSeverity; +import schemacrawler.tools.options.Config; + +import java.io.*; +import java.sql.*; +import java.util.List; +import java.util.logging.Level; +import java.util.logging.Logger; /** * Created by barmi83 on 3/24/17. diff --git a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterForeignKeyName.java b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterForeignKeyName.java index 11c7281c..33501d13 100644 --- a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterForeignKeyName.java +++ b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterForeignKeyName.java @@ -22,19 +22,15 @@ * #L% */ +import schemacrawler.schema.*; +import schemacrawler.tools.lint.BaseLinter; +import schemacrawler.tools.lint.LintSeverity; +import schemacrawler.tools.options.Config; + import java.sql.Connection; import java.util.logging.Level; import java.util.logging.Logger; -import schemacrawler.schema.Column; -import schemacrawler.schema.ForeignKey; -import schemacrawler.schema.ForeignKeyColumnReference; -import schemacrawler.schema.Table; -import schemacrawler.schema.View; -import schemacrawler.schemacrawler.Config; -import schemacrawler.tools.lint.BaseLinter; -import schemacrawler.tools.lint.LintSeverity; - import static java.util.Objects.requireNonNull; /** diff --git a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterJsonContent.java b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterJsonContent.java index 0ac3f4fc..3391246d 100644 --- a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterJsonContent.java +++ b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterJsonContent.java @@ -22,22 +22,22 @@ * #L% */ -import java.sql.Connection; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Statement; -import java.util.List; -import java.util.logging.Level; -import java.util.logging.Logger; - import io.github.mbarre.schemacrawler.utils.JSonUtils; import io.github.mbarre.schemacrawler.utils.LintUtils; import schemacrawler.schema.Column; import schemacrawler.schema.Table; -import schemacrawler.schemacrawler.Config; import schemacrawler.schemacrawler.SchemaCrawlerException; import schemacrawler.tools.lint.BaseLinter; import schemacrawler.tools.lint.LintSeverity; +import schemacrawler.tools.options.Config; + +import java.sql.Connection; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; +import java.util.List; +import java.util.logging.Level; +import java.util.logging.Logger; /** * Linter to check if non JSONB type is used whereas JSON data is store in column diff --git a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterLeftSpacePadding.java b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterLeftSpacePadding.java index ecec6acc..9683b7ca 100644 --- a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterLeftSpacePadding.java +++ b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterLeftSpacePadding.java @@ -22,6 +22,14 @@ * #L% */ +import io.github.mbarre.schemacrawler.utils.LintUtils; +import schemacrawler.schema.Column; +import schemacrawler.schema.Table; +import schemacrawler.schemacrawler.SchemaCrawlerException; +import schemacrawler.tools.lint.BaseLinter; +import schemacrawler.tools.lint.LintSeverity; +import schemacrawler.tools.options.Config; + import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; @@ -31,14 +39,6 @@ import java.util.logging.Level; import java.util.logging.Logger; -import io.github.mbarre.schemacrawler.utils.LintUtils; -import schemacrawler.schema.Column; -import schemacrawler.schema.Table; -import schemacrawler.schemacrawler.Config; -import schemacrawler.schemacrawler.SchemaCrawlerException; -import schemacrawler.tools.lint.BaseLinter; -import schemacrawler.tools.lint.LintSeverity; - public class LinterLeftSpacePadding extends BaseLinter { public static final String SAMPLE_SIZE_PARAM = "sampleSize"; private static final Logger LOGGER = Logger.getLogger(LinterLeftSpacePadding.class.getName()); diff --git a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterRightSpacePadding.java b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterRightSpacePadding.java index 3cc5018c..b670af2e 100644 --- a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterRightSpacePadding.java +++ b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterRightSpacePadding.java @@ -22,6 +22,14 @@ * #L% */ +import io.github.mbarre.schemacrawler.utils.LintUtils; +import schemacrawler.schema.Column; +import schemacrawler.schema.Table; +import schemacrawler.schemacrawler.SchemaCrawlerException; +import schemacrawler.tools.lint.BaseLinter; +import schemacrawler.tools.lint.LintSeverity; +import schemacrawler.tools.options.Config; + import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; @@ -31,14 +39,6 @@ import java.util.logging.Level; import java.util.logging.Logger; -import io.github.mbarre.schemacrawler.utils.LintUtils; -import schemacrawler.schema.Column; -import schemacrawler.schema.Table; -import schemacrawler.schemacrawler.Config; -import schemacrawler.schemacrawler.SchemaCrawlerException; -import schemacrawler.tools.lint.BaseLinter; -import schemacrawler.tools.lint.LintSeverity; - /** * Linter to check if text column has length(rtrim(column)) == length(column) */ diff --git a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterXmlContent.java b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterXmlContent.java index 57912d8b..a07a66f6 100644 --- a/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterXmlContent.java +++ b/src/main/java/io/github/mbarre/schemacrawler/tool/linter/LinterXmlContent.java @@ -22,24 +22,20 @@ * #L% */ -import java.sql.Connection; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Statement; -import java.sql.Types; -import java.util.List; -import java.util.Set; -import java.util.logging.Level; -import java.util.logging.Logger; - import io.github.mbarre.schemacrawler.utils.LintUtils; import io.github.mbarre.schemacrawler.utils.XmlUtils; import schemacrawler.schema.Column; import schemacrawler.schema.Table; -import schemacrawler.schemacrawler.Config; import schemacrawler.schemacrawler.SchemaCrawlerException; import schemacrawler.tools.lint.BaseLinter; import schemacrawler.tools.lint.LintSeverity; +import schemacrawler.tools.options.Config; + +import java.sql.*; +import java.util.List; +import java.util.Set; +import java.util.logging.Level; +import java.util.logging.Logger; /** * Linter to check if non XML type is used whereas XML data is store in column