Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to Java 21 Javadoc instead of Java 7. #1359

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link
Contributor

Link to Java 21 Javadoc instead of Java 7.

I had hoped that maybe this would help with the error that I saw when building with the Javadoc from JDK 21:

[ERROR] error: Unexpected redirection for URL https://docs.oracle.com/javase/7/docs/api/element-list to https://docs.oracle.com/javase/7/docs/api/

It turns out not to help with that.

However, the change does lead us to produce actual links to JDK types in e.g., http://truth.dev/StringSubject. (This sounds like it's different from what I previously saw in Guava, where generating Javadoc with JDK 21 (while not updating the version we link to) also fixed links. I guess I should consider updating Guava to link to Java 21, too.)

Our old behavior of linking to Java 7 arguably made some sense when that was the minimum version that we supported. But we've required Java 8 for a while now. And really, some even newer version seems likely to be useful to most users, who have largely upgraded. And given that Google search is already not great at finding Javadoc at all (let alone new versions), maybe it's good for us to get into the practice of linking to newer versions to see if that helps improve their rankings??

RELNOTES=n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants