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

Regions (DO NOT MERGE) #542

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open

Regions (DO NOT MERGE) #542

wants to merge 43 commits into from

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

@@ -135,4 +135,23 @@ public int getIndex(String name) {
}
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

@@ -135,4 +135,23 @@ public int getIndex(String name) {
}
return indices;
}

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.

1 participant