Skip to content

Commit

Permalink
Revert "Change Round Robin and WeightedRoundRobin into petiole polici…
Browse files Browse the repository at this point in the history
…es (#10528)" (#10575)

This reverts commit e1334ea.
  • Loading branch information
larry-safran authored Sep 27, 2023
1 parent cf4cf03 commit bc784c0
Show file tree
Hide file tree
Showing 15 changed files with 629 additions and 984 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
/** Unit tests for {@link ManagedChannelImpl}. */
@RunWith(JUnit4.class)
// TODO(creamsoup) remove backward compatible check when fully migrated
@SuppressWarnings({"deprecation", "DataFlowIssue"})
@SuppressWarnings("deprecation")
public class ManagedChannelImplTest {
private static final int DEFAULT_PORT = 447;

Expand Down
5 changes: 0 additions & 5 deletions core/src/testFixtures/java/io/grpc/internal/TestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import io.grpc.CallOptions;
import io.grpc.ChannelLogger;
import io.grpc.ClientStreamTracer;
import io.grpc.EquivalentAddressGroup;
import io.grpc.InternalLogId;
import io.grpc.LoadBalancer.PickResult;
import io.grpc.LoadBalancer.PickSubchannelArgs;
Expand Down Expand Up @@ -144,10 +143,6 @@ public Runnable answer(InvocationOnMock invocation) throws Throwable {
return captor;
}

public static EquivalentAddressGroup stripAttrs(EquivalentAddressGroup eag) {
return new EquivalentAddressGroup(eag.getAddresses());
}

private TestUtils() {
}

Expand Down
1 change: 0 additions & 1 deletion examples/android/strictmode/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.0.0'

// You need to build grpc-java to obtain these libraries below.
implementation 'io.grpc:grpc-core:1.59.0-SNAPSHOT' // CURRENT_GRPC_VERSION
implementation 'io.grpc:grpc-okhttp:1.59.0-SNAPSHOT' // CURRENT_GRPC_VERSION
implementation 'io.grpc:grpc-protobuf-lite:1.59.0-SNAPSHOT' // CURRENT_GRPC_VERSION
implementation 'io.grpc:grpc-stub:1.59.0-SNAPSHOT' // CURRENT_GRPC_VERSION
Expand Down
1 change: 0 additions & 1 deletion examples/android/strictmode/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@
-dontwarn javax.naming.**
-dontwarn okio.**
-dontwarn sun.misc.Unsafe

12 changes: 2 additions & 10 deletions util/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id "java-library"
id "java-test-fixtures"
id "maven-publish"

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

implementation libraries.animalsniffer.annotations,
libraries.guava
testImplementation libraries.guava.testlib,
testFixtures(project(':grpc-api')),
testImplementation testFixtures(project(':grpc-api')),
testFixtures(project(':grpc-core')),
project(':grpc-testing')
testImplementation libraries.guava.testlib

testFixturesApi project(':grpc-core')
testFixturesImplementation libraries.guava,
libraries.junit,
libraries.mockito.core,
testFixtures(project(':grpc-api')),
testFixtures(project(':grpc-core')),
project(':grpc-testing')
jmh project(':grpc-testing')

signature libraries.signature.java
Expand Down
Loading

0 comments on commit bc784c0

Please sign in to comment.