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

Conversation

@gerring
Copy link
Contributor

@gerring gerring commented Feb 6, 2017

No description provided.

@gerring gerring changed the title Regions Regions (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
Contributor Author

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
Contributor Author

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
Contributor Author

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
Contributor Author

gerring commented Mar 1, 2017

SonarQube analysis reported 3 issues

  • MAJOR 1 major
  • MINOR 2 minor

Watch the comments in this conversation to review them.

Sign up for free to 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.

2 participants