From 6db8d8cc1dda2bb1ce1201afe087b51bb9245992 Mon Sep 17 00:00:00 2001 From: JohannesRabauer Date: Wed, 8 Jan 2025 09:13:33 +0100 Subject: [PATCH] Fix checkstyle --- .../eclipse/store/demo/complex/migration/v1_0_0_Init.java | 2 +- .../config/DefaultEclipseStoreClientConfiguration.java | 4 ---- .../store/repository/root/data/version/DataMigrater.java | 1 - .../tests/data/migration/with/migrater/v1_0_0_Init.java | 3 +-- .../data/migration/with/multiple/scripts/v1_0_0_Init.java | 3 +-- .../migration/with/multiple/scripts/v1_1_0_NextScript.java | 4 +--- .../with/multiple/scripts/v1_2_0_CustomNamedScript.java | 3 +-- .../tests/data/migration/with/script/v1_0_0_Init.java | 2 +- 8 files changed, 6 insertions(+), 16 deletions(-) diff --git a/spring-data-eclipse-store-demo/src/main/java/software/xdev/spring/data/eclipse/store/demo/complex/migration/v1_0_0_Init.java b/spring-data-eclipse-store-demo/src/main/java/software/xdev/spring/data/eclipse/store/demo/complex/migration/v1_0_0_Init.java index 7ec4fb2e..2e9c3d84 100644 --- a/spring-data-eclipse-store-demo/src/main/java/software/xdev/spring/data/eclipse/store/demo/complex/migration/v1_0_0_Init.java +++ b/spring-data-eclipse-store-demo/src/main/java/software/xdev/spring/data/eclipse/store/demo/complex/migration/v1_0_0_Init.java @@ -33,7 +33,7 @@ * In contrast to {@link CustomNameScript} the version of this script is defined by * the name of the class defines the version. */ -@SuppressWarnings("CheckStyle") +@SuppressWarnings("checkstyle:TypeName") @Component public class v1_0_0_Init extends ReflectiveDataMigrationScript { diff --git a/spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/config/DefaultEclipseStoreClientConfiguration.java b/spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/config/DefaultEclipseStoreClientConfiguration.java index 38f88c2f..c462e0a5 100644 --- a/spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/config/DefaultEclipseStoreClientConfiguration.java +++ b/spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/config/DefaultEclipseStoreClientConfiguration.java @@ -15,15 +15,11 @@ */ package software.xdev.spring.data.eclipse.store.repository.config; -import java.util.Optional; - import org.eclipse.serializer.reflect.ClassLoaderProvider; import org.eclipse.store.integrations.spring.boot.types.configuration.EclipseStoreProperties; import org.eclipse.store.integrations.spring.boot.types.factories.EmbeddedStorageFoundationFactory; import org.springframework.context.annotation.Configuration; -import software.xdev.micromigration.migrater.MicroMigrater; - /** * Provides the Default implementation of an {@link EclipseStoreClientConfiguration}. The class can't be final because diff --git a/spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/root/data/version/DataMigrater.java b/spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/root/data/version/DataMigrater.java index 244fc879..d23e39b3 100644 --- a/spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/root/data/version/DataMigrater.java +++ b/spring-data-eclipse-store/src/main/java/software/xdev/spring/data/eclipse/store/repository/root/data/version/DataMigrater.java @@ -16,7 +16,6 @@ package software.xdev.spring.data.eclipse.store.repository.root.data.version; import java.util.List; -import java.util.Optional; import java.util.TreeSet; import java.util.function.Consumer; diff --git a/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/migrater/v1_0_0_Init.java b/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/migrater/v1_0_0_Init.java index 8dd2c367..94c9cfd3 100644 --- a/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/migrater/v1_0_0_Init.java +++ b/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/migrater/v1_0_0_Init.java @@ -18,11 +18,10 @@ import software.xdev.micromigration.eclipsestore.MigrationEmbeddedStorageManager; import software.xdev.micromigration.scripts.Context; import software.xdev.spring.data.eclipse.store.repository.root.VersionedRoot; -import software.xdev.spring.data.eclipse.store.repository.root.data.version.DataMigrationScript; import software.xdev.spring.data.eclipse.store.repository.root.data.version.ReflectiveDataMigrationScript; -@SuppressWarnings("CheckStyle") +@SuppressWarnings("checkstyle:TypeName") public class v1_0_0_Init extends ReflectiveDataMigrationScript { private final PersistedEntityRepository diff --git a/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/multiple/scripts/v1_0_0_Init.java b/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/multiple/scripts/v1_0_0_Init.java index a16a6d1f..609edd8f 100644 --- a/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/multiple/scripts/v1_0_0_Init.java +++ b/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/multiple/scripts/v1_0_0_Init.java @@ -23,8 +23,7 @@ import software.xdev.spring.data.eclipse.store.repository.root.VersionedRoot; import software.xdev.spring.data.eclipse.store.repository.root.data.version.ReflectiveDataMigrationScript; - -@SuppressWarnings("CheckStyle") +@SuppressWarnings("checkstyle:TypeName") @Component public class v1_0_0_Init extends ReflectiveDataMigrationScript { diff --git a/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/multiple/scripts/v1_1_0_NextScript.java b/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/multiple/scripts/v1_1_0_NextScript.java index 379425a2..85bcd62c 100644 --- a/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/multiple/scripts/v1_1_0_NextScript.java +++ b/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/multiple/scripts/v1_1_0_NextScript.java @@ -21,11 +21,9 @@ import software.xdev.micromigration.eclipsestore.MigrationEmbeddedStorageManager; import software.xdev.micromigration.scripts.Context; import software.xdev.spring.data.eclipse.store.repository.root.VersionedRoot; -import software.xdev.spring.data.eclipse.store.repository.root.data.version.DataMigrationScript; import software.xdev.spring.data.eclipse.store.repository.root.data.version.ReflectiveDataMigrationScript; - -@SuppressWarnings("CheckStyle") +@SuppressWarnings("checkstyle:TypeName") @Component public class v1_1_0_NextScript extends ReflectiveDataMigrationScript { diff --git a/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/multiple/scripts/v1_2_0_CustomNamedScript.java b/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/multiple/scripts/v1_2_0_CustomNamedScript.java index f5a0d667..654cd327 100644 --- a/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/multiple/scripts/v1_2_0_CustomNamedScript.java +++ b/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/multiple/scripts/v1_2_0_CustomNamedScript.java @@ -24,8 +24,7 @@ import software.xdev.spring.data.eclipse.store.repository.root.VersionedRoot; import software.xdev.spring.data.eclipse.store.repository.root.data.version.DataMigrationScript; - -@SuppressWarnings("CheckStyle") +@SuppressWarnings("checkstyle:TypeName") @Component public class v1_2_0_CustomNamedScript implements DataMigrationScript { diff --git a/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/script/v1_0_0_Init.java b/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/script/v1_0_0_Init.java index 9a706dd2..07697ef2 100644 --- a/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/script/v1_0_0_Init.java +++ b/spring-data-eclipse-store/src/test/java/software/xdev/spring/data/eclipse/store/integration/isolated/tests/data/migration/with/script/v1_0_0_Init.java @@ -24,7 +24,7 @@ import software.xdev.spring.data.eclipse.store.repository.root.data.version.ReflectiveDataMigrationScript; -@SuppressWarnings("CheckStyle") +@SuppressWarnings("checkstyle:TypeName") @Component public class v1_0_0_Init extends ReflectiveDataMigrationScript {