From aa5f502356db8560f46fbbe40f105f118986ea6c Mon Sep 17 00:00:00 2001 From: Matteo Rinaudo Date: Sat, 23 Sep 2023 07:50:49 -0400 Subject: [PATCH] Declare TypeConfigurationModel as nullable. --- .../com/awscommunity/s3/accesscontrol/BaseHookHandlerStd.kt | 2 +- .../com/awscommunity/s3/accesscontrol/PreCreateHookHandler.kt | 2 +- .../com/awscommunity/s3/accesscontrol/PreUpdateHookHandler.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/S3_AccessControl/src/main/kotlin/com/awscommunity/s3/accesscontrol/BaseHookHandlerStd.kt b/hooks/S3_AccessControl/src/main/kotlin/com/awscommunity/s3/accesscontrol/BaseHookHandlerStd.kt index e14bc4cd..13501a36 100644 --- a/hooks/S3_AccessControl/src/main/kotlin/com/awscommunity/s3/accesscontrol/BaseHookHandlerStd.kt +++ b/hooks/S3_AccessControl/src/main/kotlin/com/awscommunity/s3/accesscontrol/BaseHookHandlerStd.kt @@ -29,7 +29,7 @@ abstract class BaseHookHandlerStd : BaseHookHandler { val targetModel = request.hookContext.getTargetModel(AwsS3BucketTargetModel::class.java) val resourceProperties = targetModel.resourceProperties diff --git a/hooks/S3_AccessControl/src/main/kotlin/com/awscommunity/s3/accesscontrol/PreCreateHookHandler.kt b/hooks/S3_AccessControl/src/main/kotlin/com/awscommunity/s3/accesscontrol/PreCreateHookHandler.kt index 0ad485c7..288ba546 100644 --- a/hooks/S3_AccessControl/src/main/kotlin/com/awscommunity/s3/accesscontrol/PreCreateHookHandler.kt +++ b/hooks/S3_AccessControl/src/main/kotlin/com/awscommunity/s3/accesscontrol/PreCreateHookHandler.kt @@ -25,7 +25,7 @@ open class PreCreateHookHandler : BaseHookHandlerStd() { request: HookHandlerRequest, callbackContext: CallbackContext?, logger: Logger, - typeConfiguration: TypeConfigurationModel + typeConfiguration: TypeConfigurationModel? ): ProgressEvent { return handlePreCreatePreUpdateRequests(proxy, request, callbackContext, logger, typeConfiguration) } diff --git a/hooks/S3_AccessControl/src/main/kotlin/com/awscommunity/s3/accesscontrol/PreUpdateHookHandler.kt b/hooks/S3_AccessControl/src/main/kotlin/com/awscommunity/s3/accesscontrol/PreUpdateHookHandler.kt index 7da1f514..35d4ec66 100644 --- a/hooks/S3_AccessControl/src/main/kotlin/com/awscommunity/s3/accesscontrol/PreUpdateHookHandler.kt +++ b/hooks/S3_AccessControl/src/main/kotlin/com/awscommunity/s3/accesscontrol/PreUpdateHookHandler.kt @@ -25,7 +25,7 @@ open class PreUpdateHookHandler : BaseHookHandlerStd() { request: HookHandlerRequest, callbackContext: CallbackContext?, logger: Logger, - typeConfiguration: TypeConfigurationModel + typeConfiguration: TypeConfigurationModel? ): ProgressEvent { return handlePreCreatePreUpdateRequests(proxy, request, callbackContext, logger, typeConfiguration) }