Skip to content

Commit bc784c0

Browse files
authored
Revert "Change Round Robin and WeightedRoundRobin into petiole policies (#10528)" (#10575)
This reverts commit e1334ea.
1 parent cf4cf03 commit bc784c0

File tree

15 files changed

+629
-984
lines changed

15 files changed

+629
-984
lines changed

core/src/test/java/io/grpc/internal/ManagedChannelImplTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
/** Unit tests for {@link ManagedChannelImpl}. */
162162
@RunWith(JUnit4.class)
163163
// TODO(creamsoup) remove backward compatible check when fully migrated
164-
@SuppressWarnings({"deprecation", "DataFlowIssue"})
164+
@SuppressWarnings("deprecation")
165165
public class ManagedChannelImplTest {
166166
private static final int DEFAULT_PORT = 447;
167167

core/src/testFixtures/java/io/grpc/internal/TestUtils.java

-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import io.grpc.CallOptions;
2525
import io.grpc.ChannelLogger;
2626
import io.grpc.ClientStreamTracer;
27-
import io.grpc.EquivalentAddressGroup;
2827
import io.grpc.InternalLogId;
2928
import io.grpc.LoadBalancer.PickResult;
3029
import io.grpc.LoadBalancer.PickSubchannelArgs;
@@ -144,10 +143,6 @@ public Runnable answer(InvocationOnMock invocation) throws Throwable {
144143
return captor;
145144
}
146145

147-
public static EquivalentAddressGroup stripAttrs(EquivalentAddressGroup eag) {
148-
return new EquivalentAddressGroup(eag.getAddresses());
149-
}
150-
151146
private TestUtils() {
152147
}
153148

examples/android/strictmode/app/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ dependencies {
5353
implementation 'androidx.appcompat:appcompat:1.0.0'
5454

5555
// You need to build grpc-java to obtain these libraries below.
56-
implementation 'io.grpc:grpc-core:1.59.0-SNAPSHOT' // CURRENT_GRPC_VERSION
5756
implementation 'io.grpc:grpc-okhttp:1.59.0-SNAPSHOT' // CURRENT_GRPC_VERSION
5857
implementation 'io.grpc:grpc-protobuf-lite:1.59.0-SNAPSHOT' // CURRENT_GRPC_VERSION
5958
implementation 'io.grpc:grpc-stub:1.59.0-SNAPSHOT' // CURRENT_GRPC_VERSION

examples/android/strictmode/app/proguard-rules.pro

-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@
1515
-dontwarn javax.naming.**
1616
-dontwarn okio.**
1717
-dontwarn sun.misc.Unsafe
18-

util/build.gradle

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
id "java-library"
3-
id "java-test-fixtures"
43
id "maven-publish"
54

65
id "me.champeau.jmh"
@@ -20,18 +19,11 @@ dependencies {
2019

2120
implementation libraries.animalsniffer.annotations,
2221
libraries.guava
23-
testImplementation libraries.guava.testlib,
24-
testFixtures(project(':grpc-api')),
22+
testImplementation testFixtures(project(':grpc-api')),
2523
testFixtures(project(':grpc-core')),
2624
project(':grpc-testing')
25+
testImplementation libraries.guava.testlib
2726

28-
testFixturesApi project(':grpc-core')
29-
testFixturesImplementation libraries.guava,
30-
libraries.junit,
31-
libraries.mockito.core,
32-
testFixtures(project(':grpc-api')),
33-
testFixtures(project(':grpc-core')),
34-
project(':grpc-testing')
3527
jmh project(':grpc-testing')
3628

3729
signature libraries.signature.java

0 commit comments

Comments
 (0)