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

Bad translation on otherwise-clause of @returns #83

Closed
bjkeller opened this issue Feb 21, 2017 · 2 comments
Closed

Bad translation on otherwise-clause of @returns #83

bjkeller opened this issue Feb 21, 2017 · 2 comments
Assignees

Comments

@bjkeller
Copy link

When given

/**
 * @returns true if x is positive, false otherwise 
 */
public static boolean isPositive(int x) {
  return x > 0;
}

Toradocu is generating the condition x==false ? result == true instead of x > 0 ? result == true : result == false.

If the @returns-clause is returns true if x is positive, then it does return x > 0 ? result == true.

@albertogoffi
Copy link
Owner

Support for this kind of comment has been introduced with commit d93eb78. I keep this open in case we find similar comments for which the current implementation doesn't work.

@albertogoffi albertogoffi changed the title bad translation on otherwise-clause of @returns Bad translation on otherwise-clause of @returns Feb 22, 2017
@albertogoffi
Copy link
Owner

Time to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants