diff --git a/common/metrics/src/main/java/io/helidon/common/metrics/Loader.java b/common/metrics/src/main/java/io/helidon/common/metrics/Loader.java index 1ba8e489b..3cafec5c8 100644 --- a/common/metrics/src/main/java/io/helidon/common/metrics/Loader.java +++ b/common/metrics/src/main/java/io/helidon/common/metrics/Loader.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2019, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,6 +53,7 @@ class Loader { + io.helidon.common.metrics.InternalBridge.class.getName() + " to load"); } - private Loader() {} + private Loader() { + } } diff --git a/common/reactive/src/main/java/io/helidon/common/reactive/ReactiveStreamsAdapter.java b/common/reactive/src/main/java/io/helidon/common/reactive/ReactiveStreamsAdapter.java index 206486650..f5e712cb3 100644 --- a/common/reactive/src/main/java/io/helidon/common/reactive/ReactiveStreamsAdapter.java +++ b/common/reactive/src/main/java/io/helidon/common/reactive/ReactiveStreamsAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,7 +33,9 @@ import reactor.core.publisher.Flux; @Deprecated public final class ReactiveStreamsAdapter { - private ReactiveStreamsAdapter() {} // uninstantiable + // uninstantiable + private ReactiveStreamsAdapter() { + } /** * Return a {@link Flow.Publisher} from a {@link diff --git a/config/config/src/main/java/io/helidon/config/spi/ConfigFilter.java b/config/config/src/main/java/io/helidon/config/spi/ConfigFilter.java index 0f2af4abd..c0038e448 100644 --- a/config/config/src/main/java/io/helidon/config/spi/ConfigFilter.java +++ b/config/config/src/main/java/io/helidon/config/spi/ConfigFilter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,6 +79,7 @@ public interface ConfigFilter { * * @param config {@code Config} instance under construction */ - default void init(Config config) {} + default void init(Config config) { + } } diff --git a/config/test-infrastructure/src/main/java/io/helidon/config/test/infra/TemporaryFolderExt.java b/config/test-infrastructure/src/main/java/io/helidon/config/test/infra/TemporaryFolderExt.java index 29dd99a07..a2c6a7441 100644 --- a/config/test-infrastructure/src/main/java/io/helidon/config/test/infra/TemporaryFolderExt.java +++ b/config/test-infrastructure/src/main/java/io/helidon/config/test/infra/TemporaryFolderExt.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,7 +50,8 @@ public class TemporaryFolderExt implements BeforeEachCallback, AfterEachCallback private Path root; - private TemporaryFolderExt() {} + private TemporaryFolderExt() { + } /** * Builds an instance of TemporaryFolderExt. diff --git a/etc/checkstyle-suppressions.xml b/etc/checkstyle-suppressions.xml index 20f766240..304c066c3 100644 --- a/etc/checkstyle-suppressions.xml +++ b/etc/checkstyle-suppressions.xml @@ -1,7 +1,7 @@ - + - - - - - + + - - + diff --git a/etc/checkstyle.xml b/etc/checkstyle.xml index 2321c2cad..26e793217 100644 --- a/etc/checkstyle.xml +++ b/etc/checkstyle.xml @@ -1,7 +1,7 @@ + + + + + + - @@ -101,7 +108,9 @@ - + + + @@ -170,12 +179,6 @@ - - - - - - diff --git a/examples/openapi/src/main/java/io/helidon/examples/openapi/Main.java b/examples/openapi/src/main/java/io/helidon/examples/openapi/Main.java index 09e2dfc9d..dcc105c35 100644 --- a/examples/openapi/src/main/java/io/helidon/examples/openapi/Main.java +++ b/examples/openapi/src/main/java/io/helidon/examples/openapi/Main.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2019, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,8 @@ public final class Main { /** * Cannot be instantiated. */ - private Main() { } + private Main() { + } /** * Application main entry point. diff --git a/examples/quickstarts/helidon-quickstart-mp/src/main/java/io/helidon/examples/quickstart/mp/Main.java b/examples/quickstarts/helidon-quickstart-mp/src/main/java/io/helidon/examples/quickstart/mp/Main.java index 5b310ff83..4b6367f9f 100644 --- a/examples/quickstarts/helidon-quickstart-mp/src/main/java/io/helidon/examples/quickstart/mp/Main.java +++ b/examples/quickstarts/helidon-quickstart-mp/src/main/java/io/helidon/examples/quickstart/mp/Main.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,8 @@ public final class Main { /** * Cannot be instantiated. */ - private Main() { } + private Main() { + } /** * Application main entry point. diff --git a/examples/quickstarts/helidon-quickstart-se/src/main/java/io/helidon/examples/quickstart/se/Main.java b/examples/quickstarts/helidon-quickstart-se/src/main/java/io/helidon/examples/quickstart/se/Main.java index 65fcc9eed..820f5dcab 100644 --- a/examples/quickstarts/helidon-quickstart-se/src/main/java/io/helidon/examples/quickstart/se/Main.java +++ b/examples/quickstarts/helidon-quickstart-se/src/main/java/io/helidon/examples/quickstart/se/Main.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,8 @@ public final class Main { /** * Cannot be instantiated. */ - private Main() { } + private Main() { + } /** * Application main entry point. diff --git a/examples/quickstarts/helidon-standalone-quickstart-mp/src/main/java/io/helidon/examples/quickstart/mp/Main.java b/examples/quickstarts/helidon-standalone-quickstart-mp/src/main/java/io/helidon/examples/quickstart/mp/Main.java index 5b310ff83..4b6367f9f 100644 --- a/examples/quickstarts/helidon-standalone-quickstart-mp/src/main/java/io/helidon/examples/quickstart/mp/Main.java +++ b/examples/quickstarts/helidon-standalone-quickstart-mp/src/main/java/io/helidon/examples/quickstart/mp/Main.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,8 @@ public final class Main { /** * Cannot be instantiated. */ - private Main() { } + private Main() { + } /** * Application main entry point. diff --git a/examples/quickstarts/helidon-standalone-quickstart-se/src/main/java/io/helidon/examples/quickstart/se/Main.java b/examples/quickstarts/helidon-standalone-quickstart-se/src/main/java/io/helidon/examples/quickstart/se/Main.java index 65fcc9eed..820f5dcab 100644 --- a/examples/quickstarts/helidon-standalone-quickstart-se/src/main/java/io/helidon/examples/quickstart/se/Main.java +++ b/examples/quickstarts/helidon-standalone-quickstart-se/src/main/java/io/helidon/examples/quickstart/se/Main.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,8 @@ public final class Main { /** * Cannot be instantiated. */ - private Main() { } + private Main() { + } /** * Application main entry point. diff --git a/examples/todo-app/backend/src/main/java/io/helidon/demo/todos/backend/Main.java b/examples/todo-app/backend/src/main/java/io/helidon/demo/todos/backend/Main.java index eb2a80bae..9bfa446db 100644 --- a/examples/todo-app/backend/src/main/java/io/helidon/demo/todos/backend/Main.java +++ b/examples/todo-app/backend/src/main/java/io/helidon/demo/todos/backend/Main.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,8 @@ public final class Main { /** * Cannot be instantiated. */ - private Main() { } + private Main() { + } /** * Application main entry point. diff --git a/examples/todo-app/frontend/src/main/java/io/helidon/demo/todos/frontend/Main.java b/examples/todo-app/frontend/src/main/java/io/helidon/demo/todos/frontend/Main.java index 2af5e7ed3..175f21131 100644 --- a/examples/todo-app/frontend/src/main/java/io/helidon/demo/todos/frontend/Main.java +++ b/examples/todo-app/frontend/src/main/java/io/helidon/demo/todos/frontend/Main.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,7 +59,8 @@ public final class Main { /** * Cannot be instantiated. */ - private Main() { } + private Main() { + } /** * Application main entry point. diff --git a/examples/webserver/streaming/src/main/java/io/helidon/webserver/examples/streaming/Main.java b/examples/webserver/streaming/src/main/java/io/helidon/webserver/examples/streaming/Main.java index 9e780b339..f4ae45ee6 100644 --- a/examples/webserver/streaming/src/main/java/io/helidon/webserver/examples/streaming/Main.java +++ b/examples/webserver/streaming/src/main/java/io/helidon/webserver/examples/streaming/Main.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,8 @@ public class Main { static final String LARGE_FILE_RESOURCE = "/large-file.bin"; - private Main() {} + private Main() { + } /** * Creates new {@link Routing}. diff --git a/examples/webserver/tutorial/src/main/java/io/helidon/webserver/examples/tutorial/Main.java b/examples/webserver/tutorial/src/main/java/io/helidon/webserver/examples/tutorial/Main.java index 23e196acc..ac106a9da 100644 --- a/examples/webserver/tutorial/src/main/java/io/helidon/webserver/examples/tutorial/Main.java +++ b/examples/webserver/tutorial/src/main/java/io/helidon/webserver/examples/tutorial/Main.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,8 @@ import io.helidon.webserver.examples.tutorial.user.UserFilter; */ public final class Main { - private Main() {} + private Main() { + } static Routing createRouting() { UpperXFilter upperXFilter = new UpperXFilter(); diff --git a/metrics/prometheus/src/main/java/io/helidon/metrics/prometheus/PrometheusSupport.java b/metrics/prometheus/src/main/java/io/helidon/metrics/prometheus/PrometheusSupport.java index 739dd07e3..8257998ee 100644 --- a/metrics/prometheus/src/main/java/io/helidon/metrics/prometheus/PrometheusSupport.java +++ b/metrics/prometheus/src/main/java/io/helidon/metrics/prometheus/PrometheusSupport.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -209,7 +209,8 @@ public final class PrometheusSupport implements Service { private CollectorRegistry registry = CollectorRegistry.defaultRegistry; private String path; - private Builder() {} + private Builder() { + } /** * Sets collector registry to use, default is {@link CollectorRegistry#defaultRegistry}. diff --git a/pom.xml b/pom.xml index 5860bd616..f656092d2 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@