From befe81c558e6a67a97dce0f51067f3ac7daf7ee5 Mon Sep 17 00:00:00 2001 From: zjcnb <33742097+zjcnb@users.noreply.github.com> Date: Thu, 31 Oct 2019 08:36:33 +0800 Subject: [PATCH] Remove excess code, no hava long.class in ShardingPropertiesConstant enum. (#3412) --- .../core/constant/properties/ShardingProperties.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/sharding-core/sharding-core-common/src/main/java/org/apache/shardingsphere/core/constant/properties/ShardingProperties.java b/sharding-core/sharding-core-common/src/main/java/org/apache/shardingsphere/core/constant/properties/ShardingProperties.java index 74f77e7072..4ab26a2f43 100644 --- a/sharding-core/sharding-core-common/src/main/java/org/apache/shardingsphere/core/constant/properties/ShardingProperties.java +++ b/sharding-core/sharding-core-common/src/main/java/org/apache/shardingsphere/core/constant/properties/ShardingProperties.java @@ -62,8 +62,6 @@ public final class ShardingProperties { errorMessages.add(getErrorMessage(shardingPropertiesConstant, value)); } else if (type == int.class && !StringUtil.isIntValue(value)) { errorMessages.add(getErrorMessage(shardingPropertiesConstant, value)); - } else if (type == long.class && !StringUtil.isLongValue(value)) { - errorMessages.add(getErrorMessage(shardingPropertiesConstant, value)); } } if (!errorMessages.isEmpty()) { -- GitLab