This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 2d15b7a47cd Remove unnecessary SQLException declaration from 
executeRuleDefinitionUpdate method (#37231)
2d15b7a47cd is described below

commit 2d15b7a47cd891240fb6817a4eba2cd55522864f
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Nov 30 21:41:30 2025 +0800

    Remove unnecessary SQLException declaration from 
executeRuleDefinitionUpdate method (#37231)
    
    * Refactor createColumnSegmentBoundInfo method and update its usage
    
    * Refactor createColumnSegmentBoundInfo method and update its usage
    
    * Remove unnecessary SQLException declaration from 
executeRuleDefinitionUpdate method
---
 .../handler/engine/update/DistSQLUpdateExecuteEngine.java        | 2 +-
 src/resources/idea/inspections.xml                               | 9 ---------
 2 files changed, 1 insertion(+), 10 deletions(-)

diff --git 
a/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/DistSQLUpdateExecuteEngine.java
 
b/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/DistSQLUpdateExecuteEngine.java
index 076294e0569..b58816cce34 100644
--- 
a/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/DistSQLUpdateExecuteEngine.java
+++ 
b/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/DistSQLUpdateExecuteEngine.java
@@ -68,7 +68,7 @@ public final class DistSQLUpdateExecuteEngine {
     }
     
     @SuppressWarnings("rawtypes")
-    private void executeRuleDefinitionUpdate() throws SQLException {
+    private void executeRuleDefinitionUpdate() {
         if (sqlStatement instanceof GlobalRuleDefinitionStatement) {
             GlobalRuleDefinitionExecutor globalExecutor = 
GlobalRuleDefinitionExecutorFactory.newInstance(sqlStatement, 
contextManager.getMetaDataContexts().getMetaData().getGlobalRuleMetaData());
             new 
GlobalRuleDefinitionExecuteEngine((GlobalRuleDefinitionStatement) sqlStatement, 
contextManager, globalExecutor).executeUpdate();
diff --git a/src/resources/idea/inspections.xml 
b/src/resources/idea/inspections.xml
index a3cec9bde45..b9ef8f2ea0a 100644
--- a/src/resources/idea/inspections.xml
+++ b/src/resources/idea/inspections.xml
@@ -28,7 +28,6 @@
     </list>
   </option>
   <inspection_tool class="AbstractBeanReferencesInspection" enabled="false" 
level="ERROR" enabled_by_default="false" />
-  <inspection_tool class="AbstractClassExtendsConcreteClass" enabled="true" 
level="WARNING" enabled_by_default="true" />
   <inspection_tool class="AbstractClassNeverImplemented" enabled="true" 
level="WARNING" enabled_by_default="true" />
   <inspection_tool class="AbstractMethodOverridesAbstractMethod" 
enabled="true" level="WARNING" enabled_by_default="true" />
   <inspection_tool class="AddOperatorModifier" enabled="false" 
level="INFORMATION" enabled_by_default="false" />
@@ -488,7 +487,6 @@
   <inspection_tool class="SelfReferenceConstructorParameter" enabled="false" 
level="WARNING" enabled_by_default="false" />
   <inspection_tool class="SequencedCollectionMethodCanBeUsed" enabled="false" 
level="WARNING" enabled_by_default="false" />
   <inspection_tool class="SerialAnnotationUsedOnWrongMember" enabled="false" 
level="WARNING" enabled_by_default="false" />
-  <inspection_tool class="SerializableHasSerialVersionUIDField" enabled="true" 
level="WARNING" enabled_by_default="true" />
   <inspection_tool class="ServletWithoutMappingInspection" enabled="false" 
level="ERROR" enabled_by_default="false" />
   <inspection_tool class="SetReplaceableByEnumSet" enabled="true" 
level="WARNING" enabled_by_default="true" />
   <inspection_tool class="SetterBackingFieldAssignment" enabled="false" 
level="WARNING" enabled_by_default="false" />
@@ -559,9 +557,6 @@
   <inspection_tool class="SpringXmlAutowireExplicitlyInspection" 
enabled="false" level="WARNING" enabled_by_default="false" />
   <inspection_tool class="SpringXmlAutowiringInspection" enabled="false" 
level="ERROR" enabled_by_default="false" />
   <inspection_tool class="SpringXmlModelInspection" enabled="false" 
level="ERROR" enabled_by_default="false" />
-  <inspection_tool class="StaticCollection" enabled="true" level="WARNING" 
enabled_by_default="true">
-    <option name="m_ignoreWeakCollections" value="false" />
-  </inspection_tool>
   <inspection_tool class="StaticGuardedByInstance" enabled="true" 
level="WARNING" enabled_by_default="true" />
   <inspection_tool class="StaticPseudoFunctionalStyleMethod" enabled="true" 
level="WARNING" enabled_by_default="true" />
   <inspection_tool class="StringBufferToStringInConcatenation" enabled="true" 
level="WARNING" enabled_by_default="true" />
@@ -622,10 +617,6 @@
   <inspection_tool class="UpperCaseFieldNameNotConstant" enabled="true" 
level="WARNING" enabled_by_default="true" />
   <inspection_tool class="UseExpressionBody" enabled="false" 
level="INFORMATION" enabled_by_default="false" />
   <inspection_tool class="UseOfAWTPeerClass" enabled="true" level="WARNING" 
enabled_by_default="true" />
-  <inspection_tool class="UseOfAnotherObjectsPrivateField" enabled="true" 
level="WARNING" enabled_by_default="true">
-    <option name="ignoreSameClass" value="false" />
-    <option name="ignoreEquals" value="false" />
-  </inspection_tool>
   <inspection_tool class="UseOfJDBCDriverClass" enabled="true" level="WARNING" 
enabled_by_default="true" />
   <inspection_tool class="UseOfObsoleteAssert" enabled="true" level="WARNING" 
enabled_by_default="true" />
   <inspection_tool class="UseOfProcessBuilder" enabled="true" level="WARNING" 
enabled_by_default="true" />

Reply via email to