Fix word spelling (#8678)

* Fix Word Spelling 'Naocs' in Comment

* Fix Word Spelling in Comment and Log of `ServiceInfo`
This commit is contained in:
ZhangShenao 2022-07-05 17:43:36 +08:00 committed by GitHub
parent 16059537a8
commit da34fbd411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ public class ServiceInfo {
} }
/** /**
* There is only one form of the key:groupName@@name@clusters. This constuctor used by DiskCache.read(String) and * There is only one form of the key:groupName@@name@clusters. This constructor used by DiskCache.read(String) and
* FailoverReactor.FailoverFileReader,you should know that 'groupName' must not be null,and 'clusters' can be null. * FailoverReactor.FailoverFileReader,you should know that 'groupName' must not be null,and 'clusters' can be null.
*/ */
public ServiceInfo(String key) { public ServiceInfo(String key) {
@ -96,7 +96,7 @@ public class ServiceInfo {
this.name = keys[serviceNameIndex]; this.name = keys[serviceNameIndex];
} else { } else {
//defensive programming //defensive programming
throw new IllegalArgumentException("Cann't parse out 'groupName',but it must not be null!"); throw new IllegalArgumentException("Can't parse out 'groupName',but it must not be null!");
} }
} }