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

JavaDocImpl#getFullText misses adding a space when tag is @see #methodName #245

Closed
astubbs opened this issue Jul 8, 2022 · 1 comment · Fixed by #246
Closed

JavaDocImpl#getFullText misses adding a space when tag is @see #methodName #245

astubbs opened this issue Jul 8, 2022 · 1 comment · Fixed by #246

Comments

@astubbs
Copy link

astubbs commented Jul 8, 2022

As the fragment doesn't resolve to a SimpleName, adding a space is skipped.

input:

result of MethodImpl.getJavaDoc().toString:

/** 
 * Convenience entry point for {@link IdCard} assertions when being mixed with other "assertThat" assertion libraries.
 * @see #assertThat
 */

result of MethodImpl.getJavaDoc().getFullText():

Convenience entry point for {@link IdCard} assertions when being mixed with other "assertThat" assertion libraries.
@see#assertThat

workaround for my use:

            String fullText = impl.getJavaDoc().getFullText();
            String replace = StringUtils.replace(fullText, "@see#", "@see #");
            copy.getJavaDoc().setText(replace);

@lincolnthree
Copy link
Member

@gastaldi You are awesome :) That is all.

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 a pull request may close this issue.

2 participants