Skip to content

Commit af39dee

Browse files
Remove unnecessary @hide doc tags from non-public AndroidX Test APIs.
Remove redundant `@hide` Javadoc, KDoc, and AIDL doc tags from 8 package-private, Kotlin `internal`, compile-only stub, or AIDL declarations in `androidx.test` that are already excluded from or unaffected by public API and reference documentation generation without `@hide` doc tags. Removing unnecessary `@hide` doc tags: - Unlocks passing `--ignore-comments` on API signature generation, improving build performance and memory usage by skipping Javadoc/KDoc extraction, comment AST parsing, and `{@link}` import caching. - Enables Metalava declarative `<api-surfaces>` XML configuration, which ignores `@hide` and `@removed` Javadoc tags by design. - Relies on language-level visibility and `@RestrictTo` annotations enforced statically by compilers, Android Lint, and IDEs. PiperOrigin-RevId: 1015488810
1 parent fc34c4b commit af39dee

8 files changed

Lines changed: 0 additions & 15 deletions

File tree

‎espresso/core/java/androidx/test/espresso/ViewInteractionModule.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636

3737
/**
3838
* Adds the user interaction scope to the Espresso graph.
39-
*
40-
* @hide
4139
*/
4240
@RestrictTo(Scope.LIBRARY)
4341
@Module(includes = {PlatformTestStorageModule.class})

‎espresso/core/java/androidx/test/espresso/remote/idls/androidx/test/espresso/remote/IInteractionExecutionStatus.aidl‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package androidx.test.espresso.remote;
1818

1919
/**
2020
* Enables the ability to share interaction execution status cross process
21-
* @hide
2221
*/
2322
@JavaPassthrough(annotation="@androidx.annotation.RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP)")
2423
interface IInteractionExecutionStatus {

‎espresso/core/java/androidx/test/espresso/util/concurrent/ExecutionList.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727

2828
/**
2929
* Minimal fork of Guava's ExecutionList to avoid the full dependency.
30-
*
31-
* @hide
3230
*/
3331
@RestrictTo(Scope.LIBRARY)
3432
final class ExecutionList {

‎espresso/device/java/androidx/test/espresso/device/dagger/DeviceControllerModule.kt‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ import javax.inject.Singleton
3434

3535
/**
3636
* Dagger module for DeviceController.
37-
*
38-
* @hide
3937
*/
4038
@RestrictTo(RestrictTo.Scope.LIBRARY)
4139
@Module

‎ext/junit/java/androidx/test/ext/junit/rules/ActivityScenarioRule.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ public final class ActivityScenarioRule<A extends Activity> extends ExternalReso
5757

5858
/**
5959
* Same as {@link java.util.function.Supplier} which requires API level 24.
60-
*
61-
* @hide
6260
*/
6361
@RestrictTo(Scope.LIBRARY)
6462
interface Supplier<T> {

‎runner/monitor/java/androidx/test/internal/runner/hidden/ExposedInstrumentationApi.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
* the device).
3535
*
3636
* <p>This class will actually never be included in our .aar!
37-
*
38-
* @hide
3937
*/
4038
@RestrictTo(Scope.LIBRARY)
4139
public class ExposedInstrumentationApi extends Instrumentation {

‎services/events/java/androidx/test/services/events/discovery/TestDiscoveryEventFactory.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
* The factory for {@link TestDiscoveryEvent#CREATOR}. When the parcel was created, the first entry
2626
* written to it was the {@link TestDiscoveryEvent#instanceType()} enum value, so use the EventType
2727
* to instantiate the correct subclass.
28-
*
29-
* @hide
3028
*/
3129
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
3230
final class TestDiscoveryEventFactory implements Creator<TestDiscoveryEvent> {

‎services/events/java/androidx/test/services/events/run/TestRunEventFactory.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
* The factory for {@link TestRunEvent#CREATOR}. When the parcel was created, the first entry
2626
* written to it was the {@link TestRunEvent#instanceType()} enum value, so use the EventType to
2727
* instantiate the correct subclass.
28-
*
29-
* @hide
3028
*/
3129
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
3230
final class TestRunEventFactory implements Creator<TestRunEvent> {

0 commit comments

Comments
 (0)