Skip to content

Commit d79b4aa

Browse files
committed
Typos
1 parent ddc452e commit d79b4aa

File tree

1 file changed

+5
-5
lines changed
  • DynamoDbEncryption/runtimes/java/src/main/java/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/internaldafny/legacy

1 file changed

+5
-5
lines changed

DynamoDbEncryption/runtimes/java/src/main/java/software/amazon/cryptography/dbencryptionsdk/dynamodb/itemencryptor/internaldafny/legacy/InternalLegacyOverride.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -217,20 +217,20 @@ public static Result<Option<InternalLegacyOverride>, Error> Build(
217217
return CreateBuildFailure(createError("Legacy encryptor is not supported"));
218218
}
219219
// Preconditions: MUST be able to create valid encryption context
220-
final Result<EncryptionContext, Error> maybeEncryptionContext = legacyEncryptionContext(encryptorConfig);
221-
if (maybeEncryptionContext.is_Failure()) {
222-
return CreateBuildFailure(maybeEncryptionContext.dtor_error());
220+
final InternalResult<EncryptionContext, Error> maybeEncryptionContext = legacyEncryptionContext(encryptorConfig);
221+
if (maybeEncryptionContext.isFailure()) {
222+
return CreateBuildFailure(maybeEncryptionContext.error());
223223
}
224224
// Precondition: All actions MUST be supported types
225225
final InternalResult<Map<String, Set<EncryptionFlags>>, Error> maybeActions = legacyActions(legacyOverride.dtor_attributeActionsOnEncrypt());
226226
if (maybeActions.isFailure()) {
227-
return CreateBuildFailure(maybeEncryptionContext.dtor_error());
227+
return CreateBuildFailure(maybeEncryptionContext.error());
228228
}
229229

230230
final InternalLegacyOverride internalLegacyOverride = new InternalLegacyOverride(
231231
(DynamoDBEncryptor) maybeEncryptor,
232232
maybeActions.value(),
233-
maybeEncryptionContext.dtor_value(),
233+
maybeEncryptionContext.value(),
234234
legacyOverride.dtor_policy()
235235
);
236236

0 commit comments

Comments
 (0)