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 24bded9a25b Remove useless DatabaseVersionParser (#36612)
24bded9a25b is described below

commit 24bded9a25bc5cfefecebfa621a8ad23099cc5e6
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Sep 18 14:10:54 2025 +0800

    Remove useless DatabaseVersionParser (#36612)
    
    * Refactor NativeStorageContainer
    
    * Remove useless DatabaseVersionParser
---
 .../atomic/util/DatabaseVersionParser.java         | 39 ----------------------
 1 file changed, 39 deletions(-)

diff --git 
a/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/atomic/util/DatabaseVersionParser.java
 
b/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/atomic/util/DatabaseVersionParser.java
deleted file mode 100644
index 6c1ce6dd9b0..00000000000
--- 
a/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/atomic/util/DatabaseVersionParser.java
+++ /dev/null
@@ -1,39 +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.test.e2e.env.container.atomic.util;
-
-import com.google.common.base.Strings;
-import lombok.AccessLevel;
-import lombok.NoArgsConstructor;
-
-/**
- * Database version parser.
- */
-@NoArgsConstructor(access = AccessLevel.PRIVATE)
-public final class DatabaseVersionParser {
-    
-    /**
-     * parse major database version.
-     *
-     * @param storageContainerImage storage container image
-     * @return major version
-     */
-    public static String parseMajorVersion(final String storageContainerImage) 
{
-        return Strings.isNullOrEmpty(storageContainerImage) ? "" : 
storageContainerImage.substring(storageContainerImage.indexOf(':') + 1, 
storageContainerImage.indexOf('.'));
-    }
-}

Reply via email to