Skip to content

Commit d30ca86

Browse files
authored
fix typo CHARECTER -> CHARACTER (#5744)
1 parent 2031110 commit d30ca86

File tree

1 file changed

+4
-4
lines changed
  • dubbo-common/src/main/java/org/apache/dubbo/common/utils

1 file changed

+4
-4
lines changed

dubbo-common/src/main/java/org/apache/dubbo/common/utils/NetUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public class NetUtils {
7171
private static final Map<String, String> HOST_NAME_CACHE = new LRUCache<>(1000);
7272
private static volatile InetAddress LOCAL_ADDRESS = null;
7373

74-
private static final String SPLIT_IPV4_CHARECTER = "\\.";
75-
private static final String SPLIT_IPV6_CHARECTER = ":";
74+
private static final String SPLIT_IPV4_CHARACTER = "\\.";
75+
private static final String SPLIT_IPV6_CHARACTER = ":";
7676

7777
public static int getRandomPort() {
7878
return RND_PORT_START + ThreadLocalRandom.current().nextInt(RND_PORT_RANGE);
@@ -448,9 +448,9 @@ public static boolean matchIpRange(String pattern, String host, int port) throws
448448
}
449449
pattern = hostAndPort[0];
450450

451-
String splitCharacter = SPLIT_IPV4_CHARECTER;
451+
String splitCharacter = SPLIT_IPV4_CHARACTER;
452452
if (!isIpv4) {
453-
splitCharacter = SPLIT_IPV6_CHARECTER;
453+
splitCharacter = SPLIT_IPV6_CHARACTER;
454454
}
455455
String[] mask = pattern.split(splitCharacter);
456456
//check format of pattern

0 commit comments

Comments
 (0)