Repository navigation
Replace legacy @hide package.html files with package-info.java in - #2528
Merged
Merged
Conversation
copybara-service
Bot
force-pushed
the
piper_1015488718
branch
6 times, most recently
from
November 7, 2026 04:02
19743c1 to
c40e2cd
Compare
AndroidX Test.
Remove the three remaining `{@hide}` `package.html` files in
`androidx.test` in favor of `@RestrictTo(Scope.LIBRARY)`
`package-info.java` declarations:
- Delete `espresso/internal/package.html` and add `package-info.java`
annotated with `@RestrictTo(Scope.LIBRARY)` for
`androidx.test.espresso.internal.inject`. The parent directory
`espresso/internal/` has no source files or `BUILD` target (so a
`package-info.java` there would not be compiled, and `@RestrictTo`
does not inherit to subpackages), while the other two subpackages
under `espresso/internal/` (`data` and `data.model`) already have
`package-info.java` files with `@RestrictTo(Scope.LIBRARY)`.
- Delete duplicate `package.html` files in
`androidx.test.internal.runner.tracker` and
`androidx.test.services.storage.internal`, which already have
`package-info.java` files annotated with `@RestrictTo(Scope.LIBRARY)`.
Replacing `{@hide}` `package.html` files with `@RestrictTo`
`package-info.java` declarations:
- Unlocks passing `--ignore-comments` on non-doc Metalava runs,
improving build performance and memory usage by skipping Javadoc/HTML
comment extraction and tag parsing.
- Enables Metalava declarative `<api-surfaces>` XML configuration,
which ignores `@hide` and `@removed` doc tags by design.
- Enforces package-level visibility in compilers, Android Lint, Dackka,
and IDEs (which do not propagate HTML `@hide` tags across packages).
PiperOrigin-RevId: 1016068880
copybara-service
Bot
force-pushed
the
piper_1015488718
branch
from
November 7, 2026 04:11
c40e2cd to
fc34c4b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace legacy @hide package.html files with package-info.java in
AndroidX Test.
Remove the three remaining
{@hide}package.htmlfiles inandroidx.testin favor of@RestrictTo(Scope.LIBRARY)package-info.javadeclarations:espresso/internal/package.htmland addpackage-info.javaannotated with
@RestrictTo(Scope.LIBRARY)forandroidx.test.espresso.internal.inject. The parent directoryespresso/internal/has no source files orBUILDtarget (so apackage-info.javathere would not be compiled, and@RestrictTodoes not inherit to subpackages), while the other two subpackages
under
espresso/internal/(dataanddata.model) already havepackage-info.javafiles with@RestrictTo(Scope.LIBRARY).package.htmlfiles inandroidx.test.internal.runner.trackerandandroidx.test.services.storage.internal, which already havepackage-info.javafiles annotated with@RestrictTo(Scope.LIBRARY).Replacing
{@hide}package.htmlfiles with@RestrictTopackage-info.javadeclarations:--ignore-commentson non-doc Metalava runs,improving build performance and memory usage by skipping Javadoc/HTML
comment extraction and tag parsing.
<api-surfaces>XML configuration,which ignores
@hideand@removeddoc tags by design.and IDEs (which do not propagate HTML
@hidetags across packages).