Skip to content

Commit bae60fc

Browse files
committed
review feedback
1 parent 09bc118 commit bae60fc

13 files changed

+17
-20
lines changed

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/advice/GrpcAdvice.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2020 Michael Zhang <[email protected]>
2+
* Copyright (c) 2016-2021 Michael Zhang <[email protected]>
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
55
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/advice/GrpcAdviceDiscoverer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2020 Michael Zhang <[email protected]>
2+
* Copyright (c) 2016-2021 Michael Zhang <[email protected]>
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
55
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/advice/GrpcAdviceExceptionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2020 Michael Zhang <[email protected]>
2+
* Copyright (c) 2016-2021 Michael Zhang <[email protected]>
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
55
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/advice/GrpcAdviceExceptionInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2020 Michael Zhang <[email protected]>
2+
* Copyright (c) 2016-2021 Michael Zhang <[email protected]>
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
55
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/advice/GrpcAdviceExceptionListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2020 Michael Zhang <[email protected]>
2+
* Copyright (c) 2016-2021 Michael Zhang <[email protected]>
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
55
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/advice/GrpcAdviceIsPresent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2020 Michael Zhang <[email protected]>
2+
* Copyright (c) 2016-2021 Michael Zhang <[email protected]>
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
55
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/advice/GrpcExceptionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2020 Michael Zhang <[email protected]>
2+
* Copyright (c) 2016-2021 Michael Zhang <[email protected]>
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
55
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/advice/GrpcExceptionHandlerMethodResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2020 Michael Zhang <[email protected]>
2+
* Copyright (c) 2016-2021 Michael Zhang <[email protected]>
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
55
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the

tests/src/test/java/net/devh/boot/grpc/test/advice/AbstractSimpleServerClientTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2020 Michael Zhang <[email protected]>
2+
* Copyright (c) 2016-2021 Michael Zhang <[email protected]>
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
55
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
@@ -70,15 +70,15 @@ protected void init() {
7070
/**
7171
* Test template call to check for every exception.
7272
*/
73-
<E extends RuntimeException> void testGrpcCallAndVerifyMappedException(Status expectedStatus, Metadata metadata) {
73+
void testGrpcCallAndVerifyMappedException(Status expectedStatus, Metadata metadata) {
7474

7575
verifyManualBlockingStubCall(expectedStatus, metadata);
7676
verifyBlockingStubCall(expectedStatus, metadata);
7777
verifyManualFutureStubCall(expectedStatus, metadata);
7878
verifyFutureStubCall(expectedStatus, metadata);
7979
}
8080

81-
private <E extends RuntimeException> void verifyManualBlockingStubCall(
81+
private void verifyManualBlockingStubCall(
8282
Status expectedStatus, Metadata expectedMetadata) {
8383

8484
StatusRuntimeException actualException =
@@ -98,7 +98,7 @@ private <E extends RuntimeException> void verifyBlockingStubCall(Status expected
9898
}
9999

100100

101-
private <E extends RuntimeException> void verifyManualFutureStubCall(
101+
private void verifyManualFutureStubCall(
102102
Status expectedStatus, Metadata expectedMetadata) {
103103

104104
final StreamRecorder<SomeType> streamRecorder = StreamRecorder.create();
@@ -110,7 +110,7 @@ private <E extends RuntimeException> void verifyManualFutureStubCall(
110110
}
111111

112112

113-
private <E extends RuntimeException> void verifyFutureStubCall(
113+
private void verifyFutureStubCall(
114114
Status expectedStatus, Metadata expectedMetadata) {
115115

116116
StatusRuntimeException actualException =

tests/src/test/java/net/devh/boot/grpc/test/advice/AdviceExceptionHandlingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2020 Michael Zhang <[email protected]>
2+
* Copyright (c) 2016-2021 Michael Zhang <[email protected]>
33
*
44
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
55
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the

0 commit comments

Comments
 (0)