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

Use Eclipse default code formatter for better readability #5

Open
jeandersonbc opened this issue Mar 15, 2016 · 0 comments
Open

Use Eclipse default code formatter for better readability #5

jeandersonbc opened this issue Mar 15, 2016 · 0 comments

Comments

@jeandersonbc
Copy link
Collaborator

The current code indentation/style is a little bit odd for Java conventions and some lines are really bad to read.

I honestly prefer this

// printing the links
if (ICC_SHOW_LINKS) {
    List<ICCLinkInfo<IntentInfo>> links = resultsEntry.getValue().iccLinks;
    for (ICCLinkInfo<IntentInfo> link : links) {
        System.out.println(link);
    }
}

Instead of this

// printing the links
if (ICC_SHOW_LINKS)
{
  List<ICCLinkInfo<IntentInfo>> links = resultsEntry.getValue().iccLinks;

  for (ICCLinkInfo<IntentInfo> link : links)
  {
    System.out.println(link);
  }
}

PRO-Tip: Enable Save Actions on Eclipse

screenshot from 2016-03-15 14 19 59

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

1 participant