[Chore] Fix comment's grammar and modifier's order (#138)

This commit is contained in:
Oliver 2022-04-04 20:34:10 +08:00 committed by GitHub
parent 5607f87a54
commit fb1983937e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ public class BulkConsumePool implements ConsumerPool {
}
@Override
synchronized public void add(String name, Channels channels, IConsumer consumer) {
public synchronized void add(String name, Channels channels, IConsumer consumer) {
MultipleChannelsConsumer multipleChannelsConsumer = getLowestPayload();
multipleChannelsConsumer.addNewTarget(channels, consumer);
}

View File

@ -169,7 +169,7 @@ public class ContextManager implements BootService {
}
/**
* If not sure has the active span, use this method, will be cause NPE when has no active span, use
* Using this method will cause NPE if active span does not exist. If one is not sure whether there is an active span, use
* ContextManager::isActive method to determine whether there has the active span.
*/
public static AbstractSpan activeSpan() {

View File

@ -53,7 +53,7 @@ public class DubboInterceptor implements InstanceMethodsAroundInterceptor {
* inject to the {@link RpcContext#attachments} for transport to provider side.
* <p>
* <h2>Provider:</h2> The serialized trace context data will extract from
* {@link RpcContext#attachments}. current trace segment will ref if the serialize context data is not null.
* {@link RpcContext#attachments}. current trace segment will ref if the serialization context data is not null.
*/
@Override
public void beforeMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes,

View File

@ -54,7 +54,7 @@ public class DubboInterceptor implements InstanceMethodsAroundInterceptor {
* inject to the {@link RpcContext#getClientAttachment} for transport to provider side.
* <p>
* <h2>Provider:</h2> The serialized trace context data will extract from
* {@link RpcContext#getServerAttachment}. current trace segment will ref if the serialize context data is not
* {@link RpcContext#getServerAttachment}. current trace segment will ref if the serialization context data is not
* null.
*/
@Override