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

4.1.1 Braces are used where optional not implemented #435

Closed
galvanopus opened this issue Jan 24, 2020 · 4 comments
Closed

4.1.1 Braces are used where optional not implemented #435

galvanopus opened this issue Jan 24, 2020 · 4 comments

Comments

@galvanopus
Copy link

Input:

int a = 0;
if (2 < 3) a++;
System.out.println(a);

Expected:

int a = 0;
if (2 < 3) {
  a++;
}
System.out.println(a);

Actual:

int a = 0;
if (2 < 3) a++;
System.out.println(a);
@lucasbraune
Copy link

I am working on this issue.

@navaneeth-spotnana
Copy link

@lucasbraune That's great news. The issue is there on java 11 too.

@anthonyvdotbe
Copy link
Contributor

@galvanopus this can be closed as a duplicate of #51

@cushon
Copy link
Collaborator

cushon commented Apr 28, 2020

#51

@cushon cushon closed this as completed Apr 28, 2020
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

5 participants