From a9bcd354ed776888cd6edf44c1ce1bcb2edb595d Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 17 Apr 2019 00:20:44 -0700 Subject: [PATCH] Checkstyle fixes. --- .idea/checkstyle-idea.xml | 18 ++++++++++++++++++ .idea/checkstyleidea-libs/readme.txt | 6 ++++++ config/checkstyle/checkstyle.xml | 17 +++++++++++++---- .../thauvin/erik/semver/VersionProcessor.java | 15 +++++++++++++-- 4 files changed, 50 insertions(+), 6 deletions(-) create mode 100644 .idea/checkstyle-idea.xml create mode 100644 .idea/checkstyleidea-libs/readme.txt diff --git a/.idea/checkstyle-idea.xml b/.idea/checkstyle-idea.xml new file mode 100644 index 0000000..17101f8 --- /dev/null +++ b/.idea/checkstyle-idea.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/.idea/checkstyleidea-libs/readme.txt b/.idea/checkstyleidea-libs/readme.txt new file mode 100644 index 0000000..71cc7ff --- /dev/null +++ b/.idea/checkstyleidea-libs/readme.txt @@ -0,0 +1,6 @@ +This folder contains libraries copied from the "semver" project. +It is managed by the CheckStyle-IDEA IDE plugin. +Do not modify this folder while the IDE is running. +When the IDE is stopped, you may delete this folder at any time. It will be recreated as needed. +In order to prevent the CheckStyle-IDEA IDE plugin from creating this folder, +uncheck the "Copy libraries from project directory" option in the CheckStyle-IDEA settings dialog. diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index ac8ef90..c426276 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -6,9 +6,12 @@ @@ -29,7 +32,10 @@ + + + @@ -47,7 +53,7 @@ - + @@ -194,9 +200,12 @@ - - - + + + + + diff --git a/src/main/java/net/thauvin/erik/semver/VersionProcessor.java b/src/main/java/net/thauvin/erik/semver/VersionProcessor.java index 57246fc..75e403b 100644 --- a/src/main/java/net/thauvin/erik/semver/VersionProcessor.java +++ b/src/main/java/net/thauvin/erik/semver/VersionProcessor.java @@ -37,7 +37,11 @@ import com.github.mustachejava.Mustache; import com.github.mustachejava.MustacheFactory; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; -import javax.annotation.processing.*; +import javax.annotation.processing.AbstractProcessor; +import javax.annotation.processing.Filer; +import javax.annotation.processing.Messager; +import javax.annotation.processing.ProcessingEnvironment; +import javax.annotation.processing.RoundEnvironment; import javax.lang.model.SourceVersion; import javax.lang.model.element.Element; import javax.lang.model.element.ElementKind; @@ -45,7 +49,14 @@ import javax.lang.model.element.PackageElement; import javax.lang.model.element.TypeElement; import javax.tools.Diagnostic; import javax.tools.FileObject; -import java.io.*; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.OutputStreamWriter; +import java.io.Writer; import java.nio.charset.StandardCharsets; import java.util.HashSet; import java.util.Properties;