From 57461bd8be5b89466d24eca6ec11aee920e8a1a2 Mon Sep 17 00:00:00 2001 From: serge-rider Date: Fri, 24 Oct 2025 08:56:48 +0200 Subject: [PATCH] dbeaver/pro#7259 Nullability annotations --- .../model/WebExpertSettingsProperties.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/WebExpertSettingsProperties.java b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/WebExpertSettingsProperties.java index 800d0f349a..86265613d3 100644 --- a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/WebExpertSettingsProperties.java +++ b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/WebExpertSettingsProperties.java @@ -1,6 +1,7 @@ package io.cloudbeaver.model; import org.jkiss.code.NotNull; +import org.jkiss.code.Nullable; import org.jkiss.dbeaver.model.DBPObject; import org.jkiss.dbeaver.model.connection.DBPDriver; import org.jkiss.dbeaver.model.connection.DBPDriverConstants; @@ -52,35 +53,35 @@ public class WebExpertSettingsProperties implements DBPObject { public static class KeepAliveIntervalFieldValidator implements IPropertyValueValidator { @Override - public boolean isValidValue(WebExpertSettingsProperties object, Object value) throws IllegalArgumentException { + public boolean isValidValue(@NotNull WebExpertSettingsProperties object, @Nullable Object value) throws IllegalArgumentException { return CommonUtils.toBoolean(!object.driver.isEmbedded(), true); } } public static class AutoCommitFieldValidator implements IPropertyValueValidator { @Override - public boolean isValidValue(WebExpertSettingsProperties object, Object value) throws IllegalArgumentException { + public boolean isValidValue(@NotNull WebExpertSettingsProperties object, @Nullable Object value) throws IllegalArgumentException { return CommonUtils.toBoolean(object.driver.getDriverParameter(DBPDriverConstants.PARAM_SUPPORTS_TRANSACTIONS), true); } } public static class ReadOnlyFieldValidator implements IPropertyValueValidator { @Override - public boolean isValidValue(WebExpertSettingsProperties object, Object value) throws IllegalArgumentException { + public boolean isValidValue(@NotNull WebExpertSettingsProperties object, @Nullable Object value) throws IllegalArgumentException { return CommonUtils.toBoolean(object.driver.getDriverParameter(DBPDriverConstants.PARAM_SUPPORTS_READ_ONLY_MODE), true); } } public static class DefaultCatalogFieldVisibleValidator implements IPropertyValueValidator { @Override - public boolean isValidValue(WebExpertSettingsProperties object, Object value) throws IllegalArgumentException { + public boolean isValidValue(@NotNull WebExpertSettingsProperties object, @Nullable Object value) throws IllegalArgumentException { return CommonUtils.toBoolean(object.driver.getDriverParameter(DBPDriverConstants.PARAM_SUPPORTS_CATALOG_SELECTION), true); } } public static class DefaultSchemaFieldVisibleValidator implements IPropertyValueValidator { @Override - public boolean isValidValue(WebExpertSettingsProperties object, Object value) throws IllegalArgumentException { + public boolean isValidValue(@NotNull WebExpertSettingsProperties object, @Nullable Object value) throws IllegalArgumentException { return CommonUtils.toBoolean(object.driver.getDriverParameter(DBPDriverConstants.PARAM_SUPPORTS_SCHEMA_SELECTION), true); } }