Skip to content

Commit 3c4625f

Browse files
committed
Style fixes
1 parent b954cac commit 3c4625f

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

grpc-client-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/client/inject/GrpcClientBeanPostProcessor.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ protected <T> T valueForMember(final String name, final Member injectionTarget,
232232
*
233233
* @param stubClass
234234
* @param channel
235-
* @throws BeanInstantiationException If the stub couldn't be created, either because the type isn't supported or because of a failure in creation.
235+
* @throws BeanInstantiationException If the stub couldn't be created, either because the type isn't supported or
236+
* because of a failure in creation.
236237
* @return A newly created gRPC stub.
237238
*/
238239
private AbstractStub<?> createStub(Class<? extends AbstractStub<?>> stubClass, Channel channel) {
@@ -245,7 +246,8 @@ private AbstractStub<?> createStub(Class<? extends AbstractStub<?>> stubClass, C
245246
try {
246247
return factory.createStub(stubClass, channel);
247248
} catch (Exception exception) {
248-
throw new BeanInstantiationException(stubClass, "Failed to create gRPC stub of type " + stubClass.getName(), exception);
249+
throw new BeanInstantiationException(stubClass, "Failed to create gRPC stub of type " + stubClass.getName(),
250+
exception);
249251
}
250252
}
251253

grpc-client-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/client/stubfactory/StandardJavaGrpcStubFactory.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717

1818
package net.devh.boot.grpc.client.stubfactory;
1919

20-
import io.grpc.Channel;
21-
import io.grpc.stub.AbstractStub;
20+
import java.lang.reflect.Method;
21+
2222
import org.springframework.beans.BeanInstantiationException;
2323

24-
import java.lang.reflect.Method;
24+
import io.grpc.Channel;
25+
import io.grpc.stub.AbstractStub;
2526

2627
/**
2728
* A factory for creating stubs provided by standard grpc Java library. This is an abstract super-type that can be

grpc-client-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/client/stubfactory/StubFactory.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717

1818
package net.devh.boot.grpc.client.stubfactory;
1919

20+
import org.springframework.beans.BeanInstantiationException;
21+
2022
import io.grpc.Channel;
2123
import io.grpc.stub.AbstractStub;
22-
import org.springframework.beans.BeanInstantiationException;
2324

2425
/**
25-
* A factory for gRPC stubs. This is an extension mechanism for supporting different types of gRPC compiled stubs
26-
* in addition to the standard Java compiled gRPC.
26+
* A factory for gRPC stubs. This is an extension mechanism for supporting different types of gRPC compiled stubs in
27+
* addition to the standard Java compiled gRPC.
2728
*
2829
* Spring beans implementing this type will be picked up automatically and added to the list of supported types.
2930
*/
@@ -42,6 +43,7 @@ public interface StubFactory {
4243

4344
/**
4445
* Used to resolve a factory that matches the particular stub type.
46+
*
4547
* @param stubType The type of the stub that needs to be created.
4648
* @return True if this particular factory is capable of creating instances of this stub type. False otherwise.
4749
*/

0 commit comments

Comments
 (0)