all: fix lint warnings (#7016)

This commit is contained in:
Jihun Cho 2020-05-07 15:43:53 -07:00 committed by GitHub
parent 29725bb298
commit 6cde3b220b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View File

@ -193,7 +193,7 @@ public final class InProcessChannelBuilder extends
private final boolean useSharedTimer; private final boolean useSharedTimer;
private final int maxInboundMetadataSize; private final int maxInboundMetadataSize;
private boolean closed; private boolean closed;
private boolean includeCauseWithStatus; private final boolean includeCauseWithStatus;
private InProcessClientTransportFactory( private InProcessClientTransportFactory(
String name, String name,

View File

@ -2067,7 +2067,7 @@ public abstract class AbstractTransportTest {
* Verifies that the client status is as expected. By default, the code and description should * Verifies that the client status is as expected. By default, the code and description should
* be present, and the cause should be stripped away. * be present, and the cause should be stripped away.
*/ */
private void checkClientStatus(Status expectedStatus, Status clientStreamStatus) { private static void checkClientStatus(Status expectedStatus, Status clientStreamStatus) {
assertEquals(expectedStatus.getCode(), clientStreamStatus.getCode()); assertEquals(expectedStatus.getCode(), clientStreamStatus.getCode());
assertEquals(expectedStatus.getDescription(), clientStreamStatus.getDescription()); assertEquals(expectedStatus.getDescription(), clientStreamStatus.getDescription());
assertNull(clientStreamStatus.getCause()); assertNull(clientStreamStatus.getCause());

View File

@ -172,7 +172,7 @@ public final class GrpclbFallbackTestClient {
} }
} }
private void runShellCmd(String cmd) throws Exception { private static void runShellCmd(String cmd) throws Exception {
logger.info("Run shell command: " + cmd); logger.info("Run shell command: " + cmd);
ProcessBuilder pb = new ProcessBuilder("bash", "-c", cmd); ProcessBuilder pb = new ProcessBuilder("bash", "-c", cmd);
pb.redirectErrorStream(true); pb.redirectErrorStream(true);

View File

@ -189,4 +189,6 @@ final class RlsProtoConverters {
return new GrpcKeyBuilder(names, nameMatchers); return new GrpcKeyBuilder(names, nameMatchers);
} }
} }
private RlsProtoConverters() {}
} }