Skip to content
This repository was archived by the owner on Mar 27, 2018. It is now read-only.

Regions (DO NOT MERGE) - #542

Open
gerring wants to merge 43 commits into
masterfrom
regions
Open

Regions (DO NOT MERGE)#542
gerring wants to merge 43 commits into
masterfrom
regions

Conversation

@gerring

Copy link
Copy Markdown
Contributor

No description provided.

@gerringgerring changed the title RegionsRegions (DO NOT MERGE)Feb 8, 2017
return new Point(m.group(4), Integer.parseInt(m.group(5)), Double.parseDouble(m.group(6)),
m.group(1), Integer.parseInt(m.group(2)), Double.parseDouble(m.group(3)));
}
throw new RuntimeException("Unparsable string "+asString);

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAJOR Define and throw a dedicated exception instead of using a generic one. rule

return indices;
}

private static final String VERTEX = "([a-zA-Z0-9_])+\\((\\d+)\\)=([-+]?[0-9]*\\.?[0-9]+)";

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MINOR Move this variable to comply with Java Code Conventions. rule

}

private static final String VERTEX = "([a-zA-Z0-9_])+\\((\\d+)\\)=([-+]?[0-9]*\\.?[0-9]+)";
private static final Pattern POSITION = Pattern.compile(VERTEX+", "+VERTEX);

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MINOR Move this variable to comply with Java Code Conventions. rule

@gerring

Copy link
Copy Markdown
ContributorAuthor

SonarQube analysis reported 3 issues

  • MAJOR 1 major
  • MINOR 2 minor

Watch the comments in this conversation to review them.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@gerring