Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Myriad 0.2.0
Description
Currently we overuse Optionals in the config and then use an or method in various factories later. In many cases having the configuration return a default when the parameter was specified would create cleaner code. For instance:
Optional<Boolean> getCgroups() {
Optional.fromNullable(cgroups);
}
vs
Boolean getCgroups() {
return cgroups != null ? cgroups : false;
}
Attachments
Issue Links
- blocks
-
MYRIAD-283 Prepare for 0.3.0 release
- Closed