Skip to content

Commit f94c1df

Browse files
committed
gemini suggestions
1 parent 93910da commit f94c1df

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ String name() {
254254
throw new RuntimeException("invalid attributeInstance");
255255
}
256256
try {
257-
return URLDecoder.decode(matcher.group(1), StandardCharsets.UTF_8);
258-
} catch (IllegalArgumentException e) {
259-
throw new RuntimeException("invalid attributeInstance", e);
257+
return URLDecoder.decode(matcher.group(1), StandardCharsets.UTF_8.name());
258+
} catch (UnsupportedEncodingException e) {
259+
throw new RuntimeException("illegal attribute instance", e);
260260
}
261261
}
262262
}
@@ -867,7 +867,7 @@ static Autoconfigure.Granter createGranter(SDK.Services services, Config.TDFConf
867867
return granter;
868868
}
869869

870-
private static Granter getGranter(KASKeyCache keyCache, List<GetAttributeValuesByFqnsResponse.AttributeAndValue> values) {
870+
private static Granter getGranter(@Nullable KASKeyCache keyCache, List<GetAttributeValuesByFqnsResponse.AttributeAndValue> values) {
871871
List<AttributeValueFQN> attributeValues = values.stream()
872872
.map(GetAttributeValuesByFqnsResponse.AttributeAndValue::getValue)
873873
.map(Value::getFqn)

0 commit comments

Comments
 (0)