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

Fix #483 issue for Umple #994

Merged
merged 1 commit into from
Feb 14, 2017
Merged

Fix #483 issue for Umple #994

merged 1 commit into from
Feb 14, 2017

Conversation

Jaorji
Copy link
Contributor

@Jaorji Jaorji commented Feb 13, 2017

The test failed.The error message is:
cinst ant 2>&1 | Out-Null
cinst php --version=5.6.29 2>&1 | Out-Null
Command exited with code 1

//t0 repersents model run start time while t1 represents end time
Double t0 = 0.0;
Double t1 = 0.0;

Copy link
Member

Choose a reason for hiding this comment

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

I would suggest changing names to ones which are more meaningful.
For example, startTime and endTime

//gTime2 represents code generation end time
Double t11 = 0.0;
Double gTime1 = 0.0;
Double gTime2 = 0.0;
Copy link
Member

@vahdat-ab vahdat-ab Feb 13, 2017

Choose a reason for hiding this comment

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

again use relevant names for variables. You can also use proper modifiers for those variables. for example, tParsingTime for the parsing time.

String parsingT = String.valueOf(t11);
return parsingT;
}

Copy link
Member

Choose a reason for hiding this comment

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

You don't need to define this method. If you give a proper name to the variable, Umple will generate this method automatically.

@@ -292,6 +318,7 @@ class UmpleConsoleMain

String languages = String.join(",", UmpleModel.validLanguages );
optparser.acceptsAll(Arrays.asList("version", "v"), "Print out the current Umple version number");
optparser.acceptsAll(Arrays.asList("performance", "p"), "Indicate time to generate files");
Copy link
Member

@vahdat-ab vahdat-ab Feb 13, 2017

Choose a reason for hiding this comment

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

change this Indicate time to generate files with the following one:
Indicate time taken to parse and generate code

@Jaorji Jaorji force-pushed the Fix-#483 branch 4 times, most recently from ecc1edd to d5bc25f Compare February 14, 2017 00:34
@Jaorji Jaorji self-assigned this Feb 14, 2017
//gTime1 represents code generation start time
//gTime2 represents code generation end time
Double parsingTime = 0.0;
Double gTime1 = 0.0;
Copy link
Member

Choose a reason for hiding this comment

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

gTime1 and gTime2 must be indicated as internal. The reason is that there is no need to them to be available through an instance of UmpleModel

@vahdat-ab
Copy link
Member

@Jaorji good job. Thanks.

@TimLethbridge TimLethbridge deleted the Fix-#483 branch March 23, 2017 19: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
Development

Successfully merging this pull request may close these issues.

2 participants