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 int maxInboundMetadataSize;
private boolean closed;
private boolean includeCauseWithStatus;
private final boolean includeCauseWithStatus;
private InProcessClientTransportFactory(
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
* 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.getDescription(), clientStreamStatus.getDescription());
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);
ProcessBuilder pb = new ProcessBuilder("bash", "-c", cmd);
pb.redirectErrorStream(true);

View File

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