diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/HillaStats.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/HillaStats.java index 40d7d7deb1..f5af942290 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/HillaStats.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/HillaStats.java @@ -43,7 +43,8 @@ private static Optional getHillaReactVersion() { return Optional.empty(); } } catch (Exception e) { - LOGGER.error("Unable to determine com.vaadin.hilla/hilla-react version", + LOGGER.error( + "Unable to determine com.vaadin.hilla/hilla-react version", e); } return Optional.of("?"); diff --git a/packages/java/endpoint/src/test/java/com/vaadin/hilla/HillaStatsTest.java b/packages/java/endpoint/src/test/java/com/vaadin/hilla/HillaStatsTest.java index bedb9d23cb..f7df43dbbe 100644 --- a/packages/java/endpoint/src/test/java/com/vaadin/hilla/HillaStatsTest.java +++ b/packages/java/endpoint/src/test/java/com/vaadin/hilla/HillaStatsTest.java @@ -67,8 +67,9 @@ public void restoreContextClassLoader() { private URL fakeJar(String artifactId, String version) throws IOException { final Path jar = temporary.newFolder().toPath(); - final Path pomProperties = jar.resolve( - "META-INF/maven/com.vaadin.hilla/" + artifactId + "/pom.properties"); + final Path pomProperties = jar + .resolve("META-INF/maven/com.vaadin.hilla/" + artifactId + + "/pom.properties"); Files.createDirectories(pomProperties.getParent()); Files.writeString(pomProperties, "version=" + version); return jar.toUri().toURL(); diff --git a/packages/java/engine-core/src/test/java/com/vaadin/hilla/engine/EngineConfigurationTest.java b/packages/java/engine-core/src/test/java/com/vaadin/hilla/engine/EngineConfigurationTest.java index bc221ef32c..66c618e34d 100644 --- a/packages/java/engine-core/src/test/java/com/vaadin/hilla/engine/EngineConfigurationTest.java +++ b/packages/java/engine-core/src/test/java/com/vaadin/hilla/engine/EngineConfigurationTest.java @@ -41,9 +41,10 @@ public void setUp() throws IOException { this.baseDirectory = this.temporaryDirectory.resolve("base"); var parserConfiguration = new ParserConfiguration(); - parserConfiguration.setEndpointAnnotation("com.vaadin.hilla.test.Endpoint"); parserConfiguration - .setEndpointExposedAnnotation("com.vaadin.hilla.test.EndpointExposed"); + .setEndpointAnnotation("com.vaadin.hilla.test.Endpoint"); + parserConfiguration.setEndpointExposedAnnotation( + "com.vaadin.hilla.test.EndpointExposed"); parserConfiguration.setPlugins(new ParserConfiguration.Plugins(List.of( new ParserConfiguration.Plugin("parser-jvm-plugin-use"), new ParserConfiguration.Plugin("parser-jvm-plugin-nonnull", diff --git a/packages/java/parser-jvm-core/src/test/java/com/vaadin/hilla/parser/core/security/classlevel/EndpointExposedAndSecurityAnnotationTest.java b/packages/java/parser-jvm-core/src/test/java/com/vaadin/hilla/parser/core/security/classlevel/EndpointExposedAndSecurityAnnotationTest.java index 9e8dd34755..8ac1e0bc11 100644 --- a/packages/java/parser-jvm-core/src/test/java/com/vaadin/hilla/parser/core/security/classlevel/EndpointExposedAndSecurityAnnotationTest.java +++ b/packages/java/parser-jvm-core/src/test/java/com/vaadin/hilla/parser/core/security/classlevel/EndpointExposedAndSecurityAnnotationTest.java @@ -32,8 +32,8 @@ public class EndpointExposedAndSecurityAnnotationTest { public void throws_when_parentEndpointClass_annotatedWithSecurityAnnotations() { var exception = assertThrows(ParserException.class, () -> new Parser() .classLoader(getClass().getClassLoader()).classPath(classPath) - .exposedPackages( - Set.of("com.vaadin.hilla.parser.core.security.classlevel")) + .exposedPackages(Set + .of("com.vaadin.hilla.parser.core.security.classlevel")) .endpointAnnotation(Endpoint.class.getName()) .endpointExposedAnnotation(EndpointExposed.class.getName()) .execute()); diff --git a/packages/java/parser-jvm-core/src/test/java/com/vaadin/hilla/parser/core/security/methodlevel/EndpointExposedMethodAndSecurityAnnotationTest.java b/packages/java/parser-jvm-core/src/test/java/com/vaadin/hilla/parser/core/security/methodlevel/EndpointExposedMethodAndSecurityAnnotationTest.java index 9572b12607..1b78ced2a9 100644 --- a/packages/java/parser-jvm-core/src/test/java/com/vaadin/hilla/parser/core/security/methodlevel/EndpointExposedMethodAndSecurityAnnotationTest.java +++ b/packages/java/parser-jvm-core/src/test/java/com/vaadin/hilla/parser/core/security/methodlevel/EndpointExposedMethodAndSecurityAnnotationTest.java @@ -32,8 +32,8 @@ public class EndpointExposedMethodAndSecurityAnnotationTest { public void throws_when_parentEndpointMethod_annotatedWithSecurityAnnotations() { var exception = assertThrows(ParserException.class, () -> new Parser() .classLoader(getClass().getClassLoader()).classPath(classPath) - .exposedPackages( - Set.of("com.vaadin.hilla.parser.core.security.methodlevel")) + .exposedPackages(Set.of( + "com.vaadin.hilla.parser.core.security.methodlevel")) .endpointAnnotation(Endpoint.class.getName()) .endpointExposedAnnotation(EndpointExposed.class.getName()) .execute()); diff --git a/packages/java/parser-jvm-plugin-model/src/test/java/com/vaadin/hilla/parser/plugins/model/annotations/AnnotationsTest.java b/packages/java/parser-jvm-plugin-model/src/test/java/com/vaadin/hilla/parser/plugins/model/annotations/AnnotationsTest.java index 4fef85e360..08ca9d1fe1 100644 --- a/packages/java/parser-jvm-plugin-model/src/test/java/com/vaadin/hilla/parser/plugins/model/annotations/AnnotationsTest.java +++ b/packages/java/parser-jvm-plugin-model/src/test/java/com/vaadin/hilla/parser/plugins/model/annotations/AnnotationsTest.java @@ -19,8 +19,8 @@ public class AnnotationsTest { public void should_GenerateAnnotations() throws IOException, URISyntaxException { var openAPI = new Parser().classLoader(getClass().getClassLoader()) - .exposedPackages( - Set.of("com.vaadin.hilla.parser.plugins.model.annotations")) + .exposedPackages(Set.of( + "com.vaadin.hilla.parser.plugins.model.annotations")) .classPath(Set.of(helper.getTargetDir().toString())) .endpointAnnotation(Endpoint.class.getName()) .endpointExposedAnnotation(EndpointExposed.class.getName()) diff --git a/packages/java/parser-jvm-plugin-model/src/test/java/com/vaadin/hilla/parser/plugins/model/javatypes/JavaTypeTest.java b/packages/java/parser-jvm-plugin-model/src/test/java/com/vaadin/hilla/parser/plugins/model/javatypes/JavaTypeTest.java index 6a02d9b048..230f4f3ebd 100644 --- a/packages/java/parser-jvm-plugin-model/src/test/java/com/vaadin/hilla/parser/plugins/model/javatypes/JavaTypeTest.java +++ b/packages/java/parser-jvm-plugin-model/src/test/java/com/vaadin/hilla/parser/plugins/model/javatypes/JavaTypeTest.java @@ -19,8 +19,8 @@ public class JavaTypeTest { public void should_GenerateAnnotations() throws IOException, URISyntaxException { var openAPI = new Parser().classLoader(getClass().getClassLoader()) - .exposedPackages( - Set.of("com.vaadin.hilla.parser.plugins.model.javatypes")) + .exposedPackages(Set + .of("com.vaadin.hilla.parser.plugins.model.javatypes")) .classPath(Set.of(helper.getTargetDir().toString())) .endpointAnnotation(Endpoint.class.getName()) .endpointExposedAnnotation(EndpointExposed.class.getName()) diff --git a/packages/java/parser-jvm-plugin-model/src/test/java/com/vaadin/hilla/parser/plugins/model/validation/ValidationTest.java b/packages/java/parser-jvm-plugin-model/src/test/java/com/vaadin/hilla/parser/plugins/model/validation/ValidationTest.java index eb9770f2bb..7f8eb8628d 100644 --- a/packages/java/parser-jvm-plugin-model/src/test/java/com/vaadin/hilla/parser/plugins/model/validation/ValidationTest.java +++ b/packages/java/parser-jvm-plugin-model/src/test/java/com/vaadin/hilla/parser/plugins/model/validation/ValidationTest.java @@ -20,8 +20,8 @@ public class ValidationTest { public void should_GenerateValidations() throws IOException, URISyntaxException { var openAPI = new Parser().classLoader(getClass().getClassLoader()) - .exposedPackages( - Set.of("com.vaadin.hilla.parser.plugins.model.validation")) + .exposedPackages(Set + .of("com.vaadin.hilla.parser.plugins.model.validation")) .classPath(Set.of(helper.getTargetDir().toString())) .endpointAnnotation(Endpoint.class.getName()) .endpointExposedAnnotation(EndpointExposed.class.getName()) diff --git a/packages/java/parser-jvm-test-utils/src/main/java/com/vaadin/hilla/parser/testutils/TestEngineConfigurationPathResolver.java b/packages/java/parser-jvm-test-utils/src/main/java/com/vaadin/hilla/parser/testutils/TestEngineConfigurationPathResolver.java index d9150b3672..5e85e32cd8 100644 --- a/packages/java/parser-jvm-test-utils/src/main/java/com/vaadin/hilla/parser/testutils/TestEngineConfigurationPathResolver.java +++ b/packages/java/parser-jvm-test-utils/src/main/java/com/vaadin/hilla/parser/testutils/TestEngineConfigurationPathResolver.java @@ -11,12 +11,13 @@ import javax.annotation.Nonnull; /** - * A converter for relative paths of com.vaadin.hilla.engine.EngineConfiguration. It - * solves an issue of testing absolute paths on different OSes. + * A converter for relative paths of + * com.vaadin.hilla.engine.EngineConfiguration. It solves an issue of testing + * absolute paths on different OSes. *

* The class is detached (has no dependency to the real - * com.vaadin.hilla.engine.EngineConfiguration class) to avoid circular dependencies - * with the `engine-core` package. + * com.vaadin.hilla.engine.EngineConfiguration class) to avoid circular + * dependencies with the `engine-core` package. */ public final class TestEngineConfigurationPathResolver { private static final String BASE_FIELD_NAME = "baseDir";