- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo version: 2.7.4.1
* Java version: 1.8


### Actual Result

[https://github.com/apache/dubbo/blob/f89a1a8dadb419a06494433ed53b9a35f69c36dc/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NetUtils.java#L497](https://github.com/apache/dubbo/blob/f89a1a8dadb419a06494433ed53b9a35f69c36dc/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NetUtils.java#L497)


[https://github.com/apache/dubbo/blob/f89a1a8dadb419a06494433ed53b9a35f69c36dc/dubbo-common/src/main/java/org/apache/dubbo/common/utils/ReflectUtils.java#L1207](https://github.com/apache/dubbo/blob/f89a1a8dadb419a06494433ed53b9a35f69c36dc/dubbo-common/src/main/java/org/apache/dubbo/common/utils/ReflectUtils.java#L1207)


### Expected Result

```
qulified  ==> qualified

form ==> from
```

}
    private static String[] getPatternHostAndPort(String pattern, boolean isIpv4) {
        String[] result = new String[2];
        if (pattern.startsWith("[") && pattern.contains("]:")) {
            int end = pattern.indexOf("]:");
            result[0] = pattern.substring(1, end);
            result[1] = pattern.substring(end + 2);
            return result;
        } else if (pattern.startsWith("[") && pattern.endsWith("]")) {
            result[0] = pattern.substring(1, pattern.length() - 1);
            result[1] = null;
            return result;
        } else if (isIpv4 && pattern.contains(":")) {
            int end = pattern.indexOf(":");
            result[0] = pattern.substring(0, end);
            result[1] = pattern.substring(end + 1);
            return result;
        } else {
            result[0] = pattern;
            return result;
        }
    }
    private static Integer getNumOfIpSegment(String ipSegment, boolean isIpv4) {
        if (isIpv4) {
            return Integer.parseInt(ipSegment);
        }
        return Integer.parseInt(ipSegment, 16);
    }
}