Skip to content

Commit dfc3638

Browse files
committed
one more tiny one
1 parent d34056e commit dfc3638

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

sdk/src/main/java/io/opentdf/platform/sdk/Autoconfigure.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,13 @@ static Autoconfigure.Granter createGranter(SDK.Services services, Config.TDFConf
868868
}
869869

870870
private static Granter getGranter(KASKeyCache keyCache, List<GetAttributeValuesByFqnsResponse.AttributeAndValue> values) {
871-
Granter grants = new Granter(values.stream().map(GetAttributeValuesByFqnsResponse.AttributeAndValue::getValue).map(Value::getFqn).map(AttributeValueFQN::new).collect(Collectors.toList()));
871+
List<AttributeValueFQN> attributeValues = values.stream()
872+
.map(GetAttributeValuesByFqnsResponse.AttributeAndValue::getValue)
873+
.map(Value::getFqn)
874+
.map(AttributeValueFQN::new)
875+
.collect(Collectors.toList());
876+
877+
Granter grants = new Granter(attributeValues);
872878
for (var attributeAndValue: values) {
873879
String fqnstr = attributeAndValue.getValue().getFqn();
874880
AttributeValueFQN fqn = new AttributeValueFQN(fqnstr);

0 commit comments

Comments
 (0)