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

PLANNER-409: Name benchmark directories uniquely + test #130

Merged
merged 2 commits into from
Aug 21, 2015

Conversation

oskopek
Copy link
Contributor

@oskopek oskopek commented Aug 21, 2015

No description provided.

if (!benchmarkReportDirectoryAdded) {
throw new IllegalArgumentException("The benchmarkReportDirectory (" + benchmarkReportDirectory
+ ") creation failed. It probably already exists.");
if (!benchmarkDirectory.mkdirs()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The if and while condition aren't just read methods, they also have the side-effect of making the directory. That can hurt readability / code expectations, although it's very debatable too.

For consistency with the rest of optaplanner code, would you mind creating a boolean variable as in the original code?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind this. It's too debatable indeed.

ge0ffrey added a commit that referenced this pull request Aug 21, 2015
PLANNER-409: Name benchmark directories uniquely + test
@ge0ffrey ge0ffrey merged commit 196f966 into apache:master Aug 21, 2015
@oskopek oskopek deleted the PLANNER-409 branch August 24, 2015 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants