Skip to content

Commit

Permalink
chore: allow Legacy to use subclass of DynamoDBEncryptor (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz authored May 30, 2024
1 parent 51bbab5 commit 135acd9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,7 @@ public static <T> Result<T, Error> createFailure(String message) {
public static boolean isDynamoDBEncryptor(
software.amazon.cryptography.dbencryptionsdk.dynamodb.ILegacyDynamoDbEncryptor maybe
) {
System.out.println(maybe.getClass());
return maybe.getClass().equals(DynamoDBEncryptor.class);
return maybe instanceof DynamoDBEncryptor;
}

public static String ToNativeString(DafnySequence<? extends Character> s) {
Expand Down

0 comments on commit 135acd9

Please sign in to comment.