mirror of https://github.com/grpc/grpc-java.git
* Revert "all: fix lint (#5770)"
This reverts commit 00d4cc29ad.
* all: fix lint and revert redundant lint fix in #5570
This commit is contained in:
parent
2180fcd113
commit
d86d3dd363
|
|
@ -85,7 +85,6 @@ public final class AltsProtocolNegotiator {
|
|||
}
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
private static final class ClientAltsProtocolNegotiator implements ProtocolNegotiator {
|
||||
private final TsiHandshakerFactory handshakerFactory;
|
||||
private final LazyChannel lazyHandshakerChannel;
|
||||
|
|
|
|||
|
|
@ -124,7 +124,6 @@ public class LoadBalancerTest {
|
|||
|
||||
@Deprecated
|
||||
@Test
|
||||
@SuppressWarnings("deprecation")
|
||||
public void helper_createSubchannel_old_delegates() {
|
||||
class OverrideCreateSubchannel extends NoopHelper {
|
||||
boolean ran;
|
||||
|
|
|
|||
|
|
@ -1053,7 +1053,6 @@ final class ManagedChannelImpl extends ManagedChannel implements
|
|||
|
||||
@Deprecated
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public AbstractSubchannel createSubchannel(
|
||||
List<EquivalentAddressGroup> addressGroups, Attributes attrs) {
|
||||
logWarningIfNotInSyncContext("createSubchannel()");
|
||||
|
|
|
|||
|
|
@ -341,7 +341,6 @@ public class ManagedChannelImplTest {
|
|||
|
||||
@Deprecated
|
||||
@Test
|
||||
@SuppressWarnings("deprecation")
|
||||
public void createSubchannel_old_outsideSynchronizationContextShouldLogWarning() {
|
||||
createChannel();
|
||||
final AtomicReference<LogRecord> logRef = new AtomicReference<>();
|
||||
|
|
|
|||
|
|
@ -364,7 +364,7 @@ final class XdsComms {
|
|||
case MILLION:
|
||||
break;
|
||||
default:
|
||||
throw new IllegalArgumentException("unknow denominator type of " + fractionalPercent);
|
||||
throw new IllegalArgumentException("unknown denominator type of " + fractionalPercent);
|
||||
}
|
||||
|
||||
if (numerator > 1000_000) {
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ final class XdsLoadBalancer extends LoadBalancer {
|
|||
}
|
||||
|
||||
/**
|
||||
* This is only for the subchannel that is created by the the child/fallback balancer using the
|
||||
* This is only for the subchannel that is created by the child/fallback balancer using the
|
||||
* old API {@link LoadBalancer.Helper#createSubchannel(EquivalentAddressGroup, Attributes)} or
|
||||
* {@link LoadBalancer.Helper#createSubchannel(List, Attributes)}. Otherwise, it either won't be
|
||||
* called or won't have any effect.
|
||||
|
|
|
|||
|
|
@ -303,13 +303,6 @@ public class XdsCommsTest {
|
|||
.setAddress("addr11").setPortValue(11))))
|
||||
.setLoadBalancingWeight(UInt32Value.of(11))
|
||||
.build();
|
||||
LbEndpoint endpoint12 = LbEndpoint.newBuilder()
|
||||
.setEndpoint(Endpoint.newBuilder()
|
||||
.setAddress(Address.newBuilder()
|
||||
.setSocketAddress(SocketAddress.newBuilder()
|
||||
.setAddress("addr12").setPortValue(12))))
|
||||
.setLoadBalancingWeight(UInt32Value.of(12))
|
||||
.build();
|
||||
Locality localityProto2 = Locality.newBuilder()
|
||||
.setRegion("region2").setZone("zone2").setSubZone("subzone2").build();
|
||||
LbEndpoint endpoint21 = LbEndpoint.newBuilder()
|
||||
|
|
@ -319,14 +312,6 @@ public class XdsCommsTest {
|
|||
.setAddress("addr21").setPortValue(21))))
|
||||
.setLoadBalancingWeight(UInt32Value.of(21))
|
||||
.build();
|
||||
LbEndpoint endpoint22 = LbEndpoint.newBuilder()
|
||||
.setEndpoint(Endpoint.newBuilder()
|
||||
.setAddress(Address.newBuilder()
|
||||
.setSocketAddress(SocketAddress.newBuilder()
|
||||
.setAddress("addr22").setPortValue(22))))
|
||||
.setLoadBalancingWeight(UInt32Value.of(22))
|
||||
.build();
|
||||
|
||||
|
||||
DiscoveryResponse edsResponseWithDrops = DiscoveryResponse.newBuilder()
|
||||
.addResources(Any.pack(ClusterLoadAssignment.newBuilder()
|
||||
|
|
|
|||
Loading…
Reference in New Issue