Skip to content

Commit 59cff92

Browse files
author
Kay Werndli
committed
Fix copyright and style
1 parent eee8d02 commit 59cff92

File tree

7 files changed

+27
-19
lines changed

7 files changed

+27
-19
lines changed

microprofile/websocket/src/main/java/io/helidon/microprofile/tyrus/TyrusRouting.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023 Oracle and/or its affiliates.
2+
* Copyright (c) 2022, 2024 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -43,7 +43,9 @@ private TyrusRouting(Builder builder) {
4343
}
4444

4545
@Override
46-
public Class<? extends Routing> routingType() { return TyrusRouting.class; }
46+
public Class<? extends Routing> routingType() {
47+
return TyrusRouting.class;
48+
}
4749

4850
/**
4951
* Builder for WebSocket routing.

webserver/grpc/src/main/java/io/helidon/webserver/grpc/GrpcRouting.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023 Oracle and/or its affiliates.
2+
* Copyright (c) 2022, 2024 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

webserver/webserver/src/main/java/io/helidon/webserver/RouterImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023 Oracle and/or its affiliates.
2+
* Copyright (c) 2022, 2024 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

webserver/webserver/src/main/java/io/helidon/webserver/Routing.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023 Oracle and/or its affiliates.
2+
* Copyright (c) 2022, 2024 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,6 +26,8 @@ public interface Routing extends ServerLifecycle {
2626
*
2727
* @return this routing type
2828
*/
29-
public default Class<? extends Routing> routingType() { return getClass(); }
29+
default Class<? extends Routing> routingType() {
30+
return getClass();
31+
}
3032

3133
}

webserver/webserver/src/main/java/io/helidon/webserver/http/HttpRouting.java

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023 Oracle and/or its affiliates.
2+
* Copyright (c) 2022, 2024 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@ public interface HttpRouting extends Routing, Prototype.Api {
3939
*
4040
* @return a new instance
4141
*/
42-
public static Builder builder() {
42+
static Builder builder() {
4343
return HttpRoutingImpl.builder();
4444
}
4545

@@ -48,7 +48,7 @@ public static Builder builder() {
4848
*
4949
* @return new default router
5050
*/
51-
public static HttpRouting create() {
51+
static HttpRouting create() {
5252
return HttpRouting.builder()
5353
.route(HttpRoute.builder()
5454
.handler((req, res) -> res.send("Helidon WebServer works!"))
@@ -61,29 +61,31 @@ public static HttpRouting create() {
6161
*
6262
* @return empty routing
6363
*/
64-
public static HttpRouting empty() {
64+
static HttpRouting empty() {
6565
return HttpRoutingImpl.empty();
6666
}
6767

6868
@Override
69-
public default Class<? extends Routing> routingType() { return HttpRouting.class; }
69+
default Class<? extends Routing> routingType() {
70+
return HttpRouting.class;
71+
}
7072

7173

72-
public void route(ConnectionContext ctx, RoutingRequest request, RoutingResponse response);
74+
void route(ConnectionContext ctx, RoutingRequest request, RoutingResponse response);
7375

7476

7577
/**
7678
* Security associated with this routing.
7779
*
7880
* @return security
7981
*/
80-
public HttpSecurity security();
82+
HttpSecurity security();
8183

8284

8385
/**
8486
* Fluent API builder for {@link HttpRouting}.
8587
*/
86-
public interface Builder extends HttpRules, io.helidon.common.Builder<Builder, HttpRouting> {
88+
interface Builder extends HttpRules, io.helidon.common.Builder<Builder, HttpRouting> {
8789
@Override
8890
Builder register(HttpService... service);
8991

webserver/webserver/src/main/java/io/helidon/webserver/http/HttpRoutingImpl.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023 Oracle and/or its affiliates.
2+
* Copyright (c) 2022, 2024 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,7 +31,6 @@
3131
import io.helidon.http.RequestException;
3232
import io.helidon.http.Status;
3333
import io.helidon.webserver.ConnectionContext;
34-
import io.helidon.webserver.Routing;
3534
import io.helidon.webserver.ServerLifecycle;
3635

3736
final class HttpRoutingImpl implements HttpRouting {
@@ -215,7 +214,8 @@ private static class BuilderImpl implements Builder {
215214
private HttpSecurity security = HttpSecurity.create();
216215
private int maxReRouteCount = 10;
217216

218-
private BuilderImpl() {}
217+
private BuilderImpl() {
218+
}
219219

220220
private BuilderImpl(List<HttpFeature> features, HttpRoutingFeature mainRouting, HttpSecurity security, int maxReroute) {
221221
this.features.addAll(features);

webserver/websocket/src/main/java/io/helidon/webserver/websocket/WsRouting.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023 Oracle and/or its affiliates.
2+
* Copyright (c) 2022, 2024 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,7 +38,9 @@ private WsRouting(Builder builder) {
3838
}
3939

4040
@Override
41-
public Class<? extends Routing> routingType() { return WsRouting.class; }
41+
public Class<? extends Routing> routingType() {
42+
return WsRouting.class;
43+
}
4244

4345
/**
4446
* Builder for WebSocket routing.

0 commit comments

Comments
 (0)