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 c67ecd04995 Remove useless SystemPropertyUtils (#37516)
c67ecd04995 is described below

commit c67ecd04995d4d7d742bb20bef633fade93d589a
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Dec 25 17:37:13 2025 +0800

    Remove useless SystemPropertyUtils (#37516)
---
 .../proxy/backend/util/SystemPropertyUtils.java    | 49 ----------------------
 .../backend/util/SystemPropertyUtilsTest.java      | 37 ----------------
 2 files changed, 86 deletions(-)

diff --git 
a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/util/SystemPropertyUtils.java
 
b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/util/SystemPropertyUtils.java
deleted file mode 100644
index 6d0786f2915..00000000000
--- 
a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/util/SystemPropertyUtils.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.proxy.backend.util;
-
-import lombok.AccessLevel;
-import lombok.NoArgsConstructor;
-
-/**
- * System property utility class.
- */
-@NoArgsConstructor(access = AccessLevel.PRIVATE)
-public final class SystemPropertyUtils {
-    
-    /**
-     * Set system property.
-     *
-     * @param key property key
-     * @param value property value
-     */
-    public static void setSystemProperty(final String key, final String value) 
{
-        System.setProperty(key, value);
-    }
-    
-    /**
-     * Get system property.
-     *
-     * @param key property key
-     * @param defaultValue a default value
-     * @return property value
-     */
-    public static String getSystemProperty(final String key, final String 
defaultValue) {
-        return System.getProperty(key, defaultValue);
-    }
-}
diff --git 
a/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/util/SystemPropertyUtilsTest.java
 
b/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/util/SystemPropertyUtilsTest.java
deleted file mode 100644
index c4dd4ef5af9..00000000000
--- 
a/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/util/SystemPropertyUtilsTest.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.proxy.backend.util;
-
-import org.junit.jupiter.api.Test;
-
-import static org.hamcrest.CoreMatchers.is;
-import static org.hamcrest.MatcherAssert.assertThat;
-
-class SystemPropertyUtilsTest {
-    
-    @Test
-    void assertGetDefaultValue() {
-        assertThat(SystemPropertyUtils.getSystemProperty("key0", "value0"), 
is("value0"));
-    }
-    
-    @Test
-    void assertGetSystemPropertyAfterSet() {
-        SystemPropertyUtils.setSystemProperty("key1", "value1");
-        assertThat(SystemPropertyUtils.getSystemProperty("key1", "value0"), 
is("value1"));
-    }
-}

Reply via email to