-
-
Notifications
You must be signed in to change notification settings - Fork 760
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
ICU-21757 Replace UOption with commons-cli in perf-tests #2993
Conversation
Sorry, I did another commit updating the perl scripts (many didn't work even before this). But now GitHub says I don't remember seeing any comments, and I looked everywhere to find them. If you had some comment, I apologize, I didn't intend to dismiss them. If you had no comments, then I will add another entry to my "annoying things that GitHub does" list :-) Thank you, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(partial rs) lgtm
icu4j/perf-tests/src/main/java/com/ibm/icu/dev/test/perf/PerfTest.java
Outdated
Show resolved
Hide resolved
Thank you, I accepted the typo fixes. Let me know (when the time comes) if you want to go with the usual squash and merge. Thank you, |
Elango has some more feedback.
Your choice. |
fis = new FileInputStream(filename); | ||
isr = new InputStreamReader(fis, srcEncoding); | ||
br = new BufferedReader(isr); | ||
try (FileInputStream fis = new FileInputStream(filename); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: I like the Java 7 style "try-with-resources". If you're adventurous, you can tidy up the body using Java 8 Streams to convert the buffered input stream to a Stream of strings (SO link)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't want to mess with that...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SO option is still too verbose :-)
Even shorter: static Stream<String> Files.lines(Path path, Charset cs)
if ($OS eq "linux" || $OS eq "darwin") { | ||
$CLASSPATH = './target/*:./target/dependency/*'; | ||
} else { | ||
if ($^O eq "MSWin32") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: use the alias $OS
that you defined above (presumably to be more human readable) rather than $^O
Implemented Elango's feedback. |
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
Checklist