minor formatting fixes

This commit is contained in:
Jonathan Shook 2022-06-09 15:01:53 -05:00
parent cce97d1c89
commit 355d2fb19f
2 changed files with 7 additions and 2 deletions

View File

@ -21,7 +21,7 @@ package io.nosqlbench.engine.api.templating;
* types which could be configured. This method provides an efficient method for refining a template or builder object
* with O(1) field lookup.
* <p>
* The field enum doesn't limit how a field may be modified. In some cases, a single field may be iterativel built-up,
* The field enum doesn't limit how a field may be modified. In some cases, a single field may be iteratively built-up,
* such as headers for a request object. (Multiple headers can be added, and they are all a header type, just with
* different values.) In other cases, there may be a single-valued property that is replaced entirely each time it is
* set.

View File

@ -123,12 +123,17 @@ import java.util.stream.Collectors;
public class NBParams {
public static List<Element> some(Object source) {
return DataSources.elements(source).stream().map(ElementImpl::new).collect(Collectors.toList());
return DataSources
.elements(source)
.stream()
.map(ElementImpl::new)
.collect(Collectors.toList());
}
public static Element one(Object source) {
return one(null, source);
}
public static Element one(String givenName, Object source) {
List<ElementData> some = DataSources.elements(givenName,source);
if (some.size() == 0) {