Skip to content

Commit 0be2426

Browse files
committed
Make classes final
1 parent ae199dc commit 0be2426

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

grpc-contrib/src/main/java/com/salesforce/grpc/contrib/xfcc/XForwardedClientCert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* x-forwarded-client-cert (XFCC) is a proxy header which indicates certificate information of part or all of the
1919
* clients or proxies that a request has flowed through, on its way from the client to the server.
2020
*/
21-
public class XForwardedClientCert {
21+
public final class XForwardedClientCert {
2222
/**
2323
* The metadata key used to access any present {@link XForwardedClientCert} objects.
2424
*/

grpc-contrib/src/main/java/com/salesforce/grpc/contrib/xfcc/XfccMarshaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @see <a href="https://www.envoyproxy.io/docs/envoy/latest/configuration/http_conn_man/headers.html#config-http-conn-man-headers-x-forwarded-client-cert">Envoy XFCC Header</a>
2020
* @see <a href="https://github.com/linkerd/linkerd/issues/1153">Linkerd XFCC Header</a>
2121
*/
22-
public class XfccMarshaller implements Metadata.AsciiMarshaller<List<XForwardedClientCert>> {
22+
public final class XfccMarshaller implements Metadata.AsciiMarshaller<List<XForwardedClientCert>> {
2323
@Override
2424
public String toAsciiString(List<XForwardedClientCert> value) {
2525
return value.stream().map(XForwardedClientCert::toString).collect(Collectors.joining(","));

grpc-contrib/src/main/java/com/salesforce/grpc/contrib/xfcc/XfccServerInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @see <a href="https://www.envoyproxy.io/docs/envoy/latest/configuration/http_conn_man/headers.html#config-http-conn-man-headers-x-forwarded-client-cert">Envoy XFCC Header</a>
2121
* @see <a href="https://github.com/linkerd/linkerd/issues/1153">Linkerd XFCC Header</a>
2222
*/
23-
public class XfccServerInterceptor implements ServerInterceptor {
23+
public final class XfccServerInterceptor implements ServerInterceptor {
2424
private static final Metadata.Key<List<XForwardedClientCert>> XFCC_METADATA_KEY = Metadata.Key.of("x-forwarded-client-cert", new XfccMarshaller());
2525

2626
@Override

0 commit comments

Comments
 (0)