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

Return tag in javadocs converts to something else #421

Open
shahrzadav opened this issue Feb 15, 2021 · 0 comments
Open

Return tag in javadocs converts to something else #421

shahrzadav opened this issue Feb 15, 2021 · 0 comments

Comments

@shahrzadav
Copy link
Contributor

Describe the bug
The code generator at the end of the generation of a method converts all the words that equal to "return" to the killStatement + "return". This causes the return tag in javadocs to also change, and that is a bug. Here is the line where it happens.

return method.toString().replace("return ", killStatements.toString() + "\n return ");

To Reproduce
Steps to reproduce the behavior:

  1. Go to this repository and clone it 'https://github.com/shahrzadav/CogniCrypt/tree/iss296-AddCommentCodeGen'
  2. Run the project
  3. Click on Code Generator in inner eclipse
  4. Generate code for password hasher (second task)
  5. Scroll down to java docs for createPWHash method
  6. See "@pBEKeySpec.clearPassword();" inside javadocs

Expected behavior
The return tags in javadoc should not change.

Screenshots
Return-javadocs-bug

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 10
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]
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

No branches or pull requests

1 participant