CogniCrypt
CogniCrypt copied to clipboard
Return tag in javadocs converts to something else
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. https://github.com/eclipse-cognicrypt/CogniCrypt/blob/ea97afa97a2079a2e42279edb2212e6f50f99a89/plugins/de.cognicrypt.codegenerator/src/main/java/de/cognicrypt/codegenerator/generator/GeneratorMethod.java#L160
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.
Screenshots
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]