Skip to content

Fix grammar in JavaDoc for fully qualified links [SPR-17208] #21741

@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-17208 and commented

Overview

It was brought to our attention in a discussion on GitHub that JavaDoc links created from a fully qualified class name (FQCN) end up as only the simple class name in the generated HTML.

For example, in the JavaDoc for the constructor for JCacheCache, we have the following.

/**
 * Create an {@link org.springframework.cache.jcache.JCacheCache} instance.
 * @param jcache backing JCache Cache instance
 */
public JCacheCache(Cache<Object, Object> jcache) {
	this(jcache, true);
}

The Spring Team has always assumed that the generated HTML would look like the following.

Create an org.springframework.cache.jcache.JCacheCache instance.

In fact, that is what Eclipse IDE generates in the JavaDoc view. The above was literally copied and pasted from Eclipse.

However, the generated HTML on docs.spring.io actually looks like the following.

Create an JCacheCache instance.

This makes the statement grammatically incorrect since JCacheCache starts with a consonant instead of a vowel (i.e., if it were instead org.springframework.cache.jcache.JCacheCache).

Deliverables

  1. Determine if there is a flag that instructs JavaDoc to emit the FQCN instead of the simple class name.
  2. If there is no such configuration option/flag, devise a means to update all affected JavaDoc within the code base accordingly -- for example, via regular expressions.

Affects: 5.1 RC2

Reference URL: #1938 (comment)

Referenced from: commits 2bb15f7, 35c847a

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions