forked from openjdk/jmh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
7903451: JMH: Refactor internal Optional usages
Passing an empty Optional to method orAnother() of class org.openjdk.jmh.util.Optional is a no-op. Stop doing it in getters getJvmArgs(), getJvmArgsAppend(), and getJvmArgsPrepend() of class OptionsBuilder. Refactor usage of method org.openjdk.jmh.util.Optional#orAnother in class Runner using new method orElseGet() with lazy `Supplier`s as per comment added in commit db1bc36 (7902576: Lazy query for current JVM args in Runner, 2020-01-20). Clean up imports, while we're here. Reviewed-by: shade
- Loading branch information
Showing
3 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters