-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
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.
Line 160 in ea97afa
| return method.toString().replace("return ", killStatements.toString() + "\n return "); |
To Reproduce
Steps to reproduce the behavior:
- Go to this repository and clone it 'https://github.com/shahrzadav/CogniCrypt/tree/iss296-AddCommentCodeGen'
- Run the project
- Click on Code Generator in inner eclipse
- Generate code for password hasher (second task)
- Scroll down to java docs for createPWHash method
- See "@pBEKeySpec.clearPassword();" inside javadocs
Expected behavior
The return tags in javadoc should not change.
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]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels