Repository navigation
Fix Javadoc build warnings and duplicate package processing in Bazel CI builds. - #5404
Open
copybara-service[bot] wants to merge 1 commit into
Open
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
…CI builds. Javadoc artifact builds emit over 250 warnings across CI logs, which obscures real build diagnostics: - `javadoc_library` passes root packages both as positional arguments and via `-subpackages`, so `javadoc` parses root packages twice and repeats warnings. - Hilt processor artifacts generate Javadoc for internal processor packages that expose no public API and lack runtime annotation dependencies on their classpath. - Several Javadoc comments across Dagger and Hilt contain unqualified `@link` references, package-path typos, or unescaped `<` characters. Example warnings removed: ```text hilt-compiler/main/java/dagger/hilt/processor/internal/uninstallmodules/AggregatedUninstallModulesMetadata.java:37: warning: Tag @link: reference not found: dagger.hilt.android.internal.uninstallmodules.AggregatedUninstallModules * {@link dagger.hilt.android.internal.uninstallmodules.AggregatedUninstallModules} annotation. ^ hilt-compiler/main/java/dagger/hilt/processor/internal/uninstallmodules/AggregatedUninstallModulesMetadata.java:45: warning: Tag @link: reference not found: dagger.hilt.android.testing.UninstallModules /** Returns the test annotated with {@link dagger.hilt.android.testing.UninstallModules}. */ ^ hilt-android/main/java/dagger/hilt/android/internal/managers/ActivityComponentManager.java:34: warning: invalid input: '<' * <p>Note: This class is not typed since its type in generated code is always <?> or <Object>. This ^ hilt-android/main/java/dagger/hilt/android/lifecycle/HiltViewModel.java:29: warning: Tag @link: reference not found: dagger.hilt.android.lifecycle.HiltViewModelFactory * the {@link dagger.hilt.android.lifecycle.HiltViewModelFactory} and can be retrieved by default in ^ dagger-runtime/main/java/dagger/BindsOptionalOf.java:67: warning: Tag @link: reference not found: Provider * {@code null}. You can always inject the other forms, because {@link Provider} and {@link Lazy} ^ ``` Removing duplicate root-package arguments, using the standard empty Javadoc jar for Hilt processor-only artifacts, and fixing broken references eliminates these warnings. RELNOTES=N/A PiperOrigin-RevId: 1022974999
This branch has not been deployed
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.
Fix Javadoc build warnings and duplicate package processing in Bazel CI builds.
Javadoc artifact builds emit over 250 warnings across CI logs, which obscures real build diagnostics:
javadoc_librarypasses root packages both as positional arguments and via-subpackages, sojavadocparses root packages twice and repeats warnings.@linkreferences, package-path typos, or unescaped<characters.Example warnings removed:
Removing duplicate root-package arguments, using the standard empty Javadoc jar for Hilt processor-only artifacts, and fixing broken references eliminates these warnings.
RELNOTES=N/A