From ed8175f2db1c71eb2982be696c6fcd122c6cbba5 Mon Sep 17 00:00:00 2001 From: Zehua Zou <41586196+HuaHuaY@users.noreply.github.com> Date: Thu, 27 Nov 2025 12:13:25 +0800 Subject: [PATCH] refactor: add final when class will not be inherited --- src/iceberg/catalog/rest/error_handlers.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/iceberg/catalog/rest/error_handlers.h b/src/iceberg/catalog/rest/error_handlers.h index 072d70442..42a0d8c8a 100644 --- a/src/iceberg/catalog/rest/error_handlers.h +++ b/src/iceberg/catalog/rest/error_handlers.h @@ -71,7 +71,7 @@ class ICEBERG_REST_EXPORT NamespaceErrorHandler : public DefaultErrorHandler { }; /// \brief Error handler for drop namespace operations. -class ICEBERG_REST_EXPORT DropNamespaceErrorHandler : public NamespaceErrorHandler { +class ICEBERG_REST_EXPORT DropNamespaceErrorHandler final : public NamespaceErrorHandler { public: /// \brief Returns the singleton instance static const std::shared_ptr& Instance(); @@ -83,7 +83,7 @@ class ICEBERG_REST_EXPORT DropNamespaceErrorHandler : public NamespaceErrorHandl }; /// \brief Table-level error handler. -class ICEBERG_REST_EXPORT TableErrorHandler : public DefaultErrorHandler { +class ICEBERG_REST_EXPORT TableErrorHandler final : public DefaultErrorHandler { public: /// \brief Returns the singleton instance static const std::shared_ptr& Instance(); @@ -95,7 +95,7 @@ class ICEBERG_REST_EXPORT TableErrorHandler : public DefaultErrorHandler { }; /// \brief View-level error handler. -class ICEBERG_REST_EXPORT ViewErrorHandler : public DefaultErrorHandler { +class ICEBERG_REST_EXPORT ViewErrorHandler final : public DefaultErrorHandler { public: /// \brief Returns the singleton instance static const std::shared_ptr& Instance(); @@ -107,7 +107,7 @@ class ICEBERG_REST_EXPORT ViewErrorHandler : public DefaultErrorHandler { }; /// \brief Table commit operation error handler. -class ICEBERG_REST_EXPORT TableCommitErrorHandler : public DefaultErrorHandler { +class ICEBERG_REST_EXPORT TableCommitErrorHandler final : public DefaultErrorHandler { public: /// \brief Returns the singleton instance static const std::shared_ptr& Instance(); @@ -119,7 +119,7 @@ class ICEBERG_REST_EXPORT TableCommitErrorHandler : public DefaultErrorHandler { }; /// \brief View commit operation error handler. -class ICEBERG_REST_EXPORT ViewCommitErrorHandler : public DefaultErrorHandler { +class ICEBERG_REST_EXPORT ViewCommitErrorHandler final : public DefaultErrorHandler { public: /// \brief Returns the singleton instance static const std::shared_ptr& Instance();