Fix Google Java Formater violations

Some changes landed on master that do not comply with new formatter rules
This commit is contained in:
Nikolay Martynov 2018-07-22 22:10:31 -04:00 committed by Tyler Benson
parent 4283e3acb1
commit 9d2755be17
3 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ public class LettuceAsyncCommandsInstrumentation extends Instrumenter.Default {
isMethod() isMethod()
.and(named("dispatch")) .and(named("dispatch"))
.and(takesArgument(0, named("io.lettuce.core.protocol.RedisCommand"))), .and(takesArgument(0, named("io.lettuce.core.protocol.RedisCommand"))),
// Cannot reference class directly here because this would lead to class load failure on Java7 // Cannot reference class directly here because it would lead to class load failure on Java7
PACKAGE + ".LettuceAsyncCommandsAdvice"); PACKAGE + ".LettuceAsyncCommandsAdvice");
return transformers; return transformers;
} }

View File

@ -50,7 +50,7 @@ public final class LettuceClientInstrumentation extends Instrumenter.Default {
.and(nameStartsWith("connect")) .and(nameStartsWith("connect"))
.and(nameEndsWith("Async")) .and(nameEndsWith("Async"))
.and(takesArgument(1, named("io.lettuce.core.RedisURI"))), .and(takesArgument(1, named("io.lettuce.core.RedisURI"))),
// Cannot reference class directly here because this would lead to class load failure on Java7 // Cannot reference class directly here because it would lead to class load failure on Java7
PACKAGE + ".ConnectionFutureAdvice"); PACKAGE + ".ConnectionFutureAdvice");
return transformers; return transformers;
} }

View File

@ -49,7 +49,7 @@ public class LettuceReactiveCommandsInstrumentation extends Instrumenter.Default
.and(named("createMono")) .and(named("createMono"))
.and(takesArgument(0, named("java.util.function.Supplier"))) .and(takesArgument(0, named("java.util.function.Supplier")))
.and(returns(named("reactor.core.publisher.Mono"))), .and(returns(named("reactor.core.publisher.Mono"))),
// Cannot reference class directly here because this would lead to class load failure on Java7 // Cannot reference class directly here because it would lead to class load failure on Java7
PACKAGE + ".rx.LettuceMonoCreationAdvice"); PACKAGE + ".rx.LettuceMonoCreationAdvice");
transformers.put( transformers.put(
isMethod() isMethod()
@ -57,7 +57,7 @@ public class LettuceReactiveCommandsInstrumentation extends Instrumenter.Default
.and(nameEndsWith("Flux")) .and(nameEndsWith("Flux"))
.and(takesArgument(0, named("java.util.function.Supplier"))) .and(takesArgument(0, named("java.util.function.Supplier")))
.and(returns(named(("reactor.core.publisher.Flux")))), .and(returns(named(("reactor.core.publisher.Flux")))),
// Cannot reference class directly here because this would lead to class load failure on Java7 // Cannot reference class directly here because it would lead to class load failure on Java7
PACKAGE + ".rx.LettuceFluxCreationAdvice"); PACKAGE + ".rx.LettuceFluxCreationAdvice");
return transformers; return transformers;