CogniCrypt icon indicating copy to clipboard operation
CogniCrypt copied to clipboard

Return tag in javadocs converts to something else

Open shahrzadav opened this issue 4 years ago • 0 comments

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:

  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]

shahrzadav avatar Feb 15 '21 12:02 shahrzadav