Skip to content

Commit d0ed0a7

Browse files
committed
fix code style 2
1 parent 797d850 commit d0ed0a7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • test/plugin/scenarios/grpc-scenario/src/main/java/org/apache/skywalking/apm/testcase/grpc/controller

test/plugin/scenarios/grpc-scenario/src/main/java/org/apache/skywalking/apm/testcase/grpc/controller/CaseController.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ public void up() {
6363
Method usePlaintext = ReflectionUtils.findMethod(managedChannelBuilder.getClass(), "usePlaintext");
6464
if (usePlaintext != null) {
6565
int paramCount = usePlaintext.getParameterCount();
66-
if (paramCount == 0) {// no parame method usePlaintext()
66+
if (paramCount == 0) {
67+
// no parame method usePlaintext()
6768
ReflectionUtils.invokeMethod(usePlaintext, managedChannelBuilder);
68-
} else if (paramCount == 1 && usePlaintext.getParameterTypes()[0] == boolean.class) {// boolean method usePlaintext(true)
69+
} else if (paramCount == 1 && usePlaintext.getParameterTypes()[0] == boolean.class) {
70+
// boolean method usePlaintext(true)
6971
ReflectionUtils.invokeMethod(usePlaintext, managedChannelBuilder, true);
7072
}
7173
}

0 commit comments

Comments
 (0)