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

ternary hints do not apply to conditions without brackets #43

Closed
markiewb opened this issue Nov 4, 2014 · 0 comments
Closed

ternary hints do not apply to conditions without brackets #43

markiewb opened this issue Nov 4, 2014 · 0 comments
Labels
Milestone

Comments

@markiewb
Copy link
Owner

markiewb commented Nov 4, 2014

         String a = null,b = null;
        String var1 = (a != null) ? a: b;//can be converted
        String var2 = a != null ? a: b;//ternary hints do not match here

Affected hints

  • To if/else
  • Invert ternary
@markiewb markiewb added the bug label Nov 4, 2014
@markiewb markiewb added this to the 1.4.1 milestone Mar 8, 2015
@markiewb markiewb closed this as completed Mar 8, 2015
@markiewb markiewb modified the milestones: 1.4.1, 1.5.0 Mar 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant