Skip to content

Commit f906562

Browse files
authored
Mark MultiChildLoadBalancer as Internal. (grpc#10481)
* Mark MultiChildLoadBalancer as Internal. Cannot move to the internal package because of its use of classes in the util package. * Exclude MultiChildLoadBalancer from javadoc generation. * Fix javadoc creation.
1 parent b5d7f13 commit f906562

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

all/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def subprojects = [
2222
project(':grpc-servlet-jakarta'),
2323
project(':grpc-stub'),
2424
project(':grpc-testing'),
25+
project(':grpc-util'),
2526
project(':grpc-xds'),
2627
]
2728

gae-interop-testing/gae-jdk8/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,7 @@ tasks.register("runInteropTestRemote") {
166166
throw new GradleException("Interop test failed:\nthrowable:${caught}")
167167
}
168168
}
169+
170+
tasks.named("javadoc").configure {
171+
enabled = false
172+
}

util/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ animalsniffer {
3737
sourceSets.test
3838
]
3939
}
40+
41+
tasks.named("javadoc").configure {
42+
exclude 'io/grpc/util/MultiChildLoadBalancer.java'
43+
}

util/src/main/java/io/grpc/util/MultiChildLoadBalancer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
import com.google.common.annotations.VisibleForTesting;
2626
import io.grpc.ConnectivityState;
27+
import io.grpc.Internal;
2728
import io.grpc.LoadBalancer;
2829
import io.grpc.LoadBalancerProvider;
2930
import io.grpc.Status;
@@ -40,10 +41,9 @@
4041

4142
/**
4243
* A base load balancing policy for those policies which has multiple children such as
43-
* ClusterManager or the petiole policies.
44-
*
45-
* @since 1.58
44+
* ClusterManager or the petiole policies. For internal use only.
4645
*/
46+
@Internal
4747
public abstract class MultiChildLoadBalancer extends LoadBalancer {
4848

4949
@VisibleForTesting

0 commit comments

Comments
 (0)