Skip to content

Commit ad73b85

Browse files
committed
Format code before release
1 parent 98b0eff commit ad73b85

File tree

8 files changed

+37
-29
lines changed

8 files changed

+37
-29
lines changed

joylive-bootstrap/joylive-bootstrap-premain/src/main/java/com/jd/live/agent/bootstrap/vm/LiveVirtualMachine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* The {@code LiveVirtualMachine} class extends the {@link VirtualMachine} class and
3030
* provides methods to load agent libraries and agents into a target JVM.
31-
* It uses reflection to invoke methods from the {@link HotSpotVirtualMachine} class.
31+
* It uses reflection to invoke methods from the HotSpotVirtualMachine class.
3232
*/
3333
public class LiveVirtualMachine extends VirtualMachine {
3434

joylive-demo/joylive-demo-sofarpc/joylive-demo-sofarpc-provider/src/main/java/com/jd/live/agent/demo/sofarpc/provider/service/SofaRpcProviderService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
import org.springframework.stereotype.Service;
2828

2929
/**
30-
* @author: yuanjinzhong
31-
* @date: 2024/8/29 20:09
32-
* @description:
30+
* SofaRpcProviderService
31+
*
32+
* @author yuanjinzhong
3333
*/
34-
@SofaService(interfaceType = HelloService.class, bindings = { @SofaServiceBinding(bindingType = "bolt") })
34+
@SofaService(interfaceType = HelloService.class, bindings = {@SofaServiceBinding(bindingType = "bolt")})
3535
@Service
36-
public class SofaRpcProviderService implements HelloService {
36+
public class SofaRpcProviderService implements HelloService {
3737

3838
@Value("${spring.application.name}")
3939
private String applicationName;

joylive-plugin/joylive-router/joylive-router-springcloud2/src/main/java/com/jd/live/agent/plugin/router/springcloud/v2/cluster/ReactiveCluster.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
import static com.jd.live.agent.core.util.type.ClassUtils.getValue;
5050

5151
/**
52-
* @author: yuanjinzhong
53-
* @date: 2025/1/3 17:43
54-
* @description: a cluster for reactor mode
55-
* @see org.springframework.cloud.client.loadbalancer.reactive.ReactorLoadBalancerExchangeFilterFunction
52+
* A cluster for reactor mode
53+
*
54+
* @author yuanjinzhong
55+
* @see org.springframework.cloud.client.loadbalancer.reactive.ReactorLoadBalancerExchangeFilterFunction
5656
*/
5757
public class ReactiveCluster extends AbstractClientCluster<ReactiveClusterRequest, ReactiveClusterResponse> {
5858

joylive-plugin/joylive-router/joylive-router-springcloud2/src/main/java/com/jd/live/agent/plugin/router/springcloud/v2/definition/LoadBalancerExchangeFilterFunctionDefinition.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,21 @@
2828
import com.jd.live.agent.plugin.router.springcloud.v2.interceptor.ReactiveClusterInterceptor;
2929

3030
/**
31-
* @author: yuanjinzhong
32-
* @date: 2025/1/2 19:55
33-
* @description: When <code>spring.cloud.loadbalancer.ribbon.enabled=false</code> is configured in the application, ReactorLoadBalancerExchangeFilterFunction is automatically injected;
31+
* LoadBalancerExchangeFilterFunctionDefinition
32+
*
33+
* <p>
34+
* When <code>spring.cloud.loadbalancer.ribbon.enabled=false</code> is configured in the application, ReactorLoadBalancerExchangeFilterFunction is automatically injected;
3435
* otherwise, LoadBalancerExchangeFilterFunction is injected. Note that they have an either-or relationship.
36+
* </p>
37+
*
38+
* @author yuanjinzhong
3539
* @see org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerExchangeFilterFunction
3640
*/
3741
@Injectable
3842
@Extension(value = "LoadBalancerExchangeFilterFunction_v2")
3943
@ConditionalOnSpringCloud2GovernanceEnabled
4044
@ConditionalOnClass(LoadBalancerExchangeFilterFunctionDefinition.TYPE_LOADBALANCER_EXCHANGE_FILTER)
41-
public class LoadBalancerExchangeFilterFunctionDefinition extends PluginDefinitionAdapter {
45+
public class LoadBalancerExchangeFilterFunctionDefinition extends PluginDefinitionAdapter {
4246

4347
protected static final String TYPE_LOADBALANCER_EXCHANGE_FILTER = "org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerExchangeFilterFunction";
4448

@@ -58,7 +62,7 @@ public LoadBalancerExchangeFilterFunctionDefinition() {
5862
new InterceptorDefinitionAdapter(
5963
MatcherBuilder.named(METHOD_INTERCEPT).
6064
and(MatcherBuilder.arguments(ARGUMENT_INTERCEPT)),
61-
() -> new ReactiveClusterInterceptor(context)
65+
() -> new ReactiveClusterInterceptor(context)
6266
)
6367
};
6468
}

joylive-plugin/joylive-router/joylive-router-springcloud2/src/main/java/com/jd/live/agent/plugin/router/springcloud/v2/definition/ReactorLoadBalancerExchangeFilterFunctionDefinition.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,15 @@
2828
import com.jd.live.agent.plugin.router.springcloud.v2.interceptor.ReactiveClusterInterceptor;
2929

3030
/**
31-
* @author: yuanjinzhong
32-
* @date: 2025/1/2 19:52
33-
* @description: When <code>spring.cloud.loadbalancer.ribbon.enabled=false </code> is configured in the application, ReactorLoadBalancerExchangeFilterFunction is automatically injected;
31+
* ReactorLoadBalancerExchangeFilterFunctionDefinition
32+
*
33+
* <p>
34+
* When <code>spring.cloud.loadbalancer.ribbon.enabled=false </code> is configured in the application, ReactorLoadBalancerExchangeFilterFunction is automatically injected;
3435
* otherwise, LoadBalancerExchangeFilterFunction is injected. Note that they have an either-or relationship.
35-
* @see org.springframework.cloud.client.loadbalancer.reactive.ReactorLoadBalancerExchangeFilterFunction
36+
* </p>
37+
*
38+
* @author yuanjinzhong
39+
* @see org.springframework.cloud.client.loadbalancer.reactive.ReactorLoadBalancerExchangeFilterFunction
3640
*/
3741
@Injectable
3842
@Extension(value = "ReactorExchangeFilterFunctionDefinition_v2")
@@ -58,7 +62,7 @@ public ReactorLoadBalancerExchangeFilterFunctionDefinition() {
5862
new InterceptorDefinitionAdapter(
5963
MatcherBuilder.named(METHOD_INTERCEPT).
6064
and(MatcherBuilder.arguments(ARGUMENT_INTERCEPT)),
61-
() -> new ReactiveClusterInterceptor(context)
65+
() -> new ReactiveClusterInterceptor(context)
6266
)
6367
};
6468
}

joylive-plugin/joylive-router/joylive-router-springcloud2/src/main/java/com/jd/live/agent/plugin/router/springcloud/v2/interceptor/ReactiveClusterInterceptor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
import java.util.concurrent.ConcurrentHashMap;
3838

3939
/**
40-
* @author: yuanjinzhong
41-
* @date: 2025/1/2 20:02
42-
* @description:
40+
* ReactiveClusterInterceptor
41+
*
42+
* @author yuanjinzhong
4343
*/
4444
public class ReactiveClusterInterceptor extends InterceptorAdaptor {
4545

joylive-plugin/joylive-router/joylive-router-springcloud2/src/main/java/com/jd/live/agent/plugin/router/springcloud/v2/request/ReactiveClusterRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
import java.util.Map;
2727

2828
/**
29-
* @author: yuanjinzhong
30-
* @date: 2025/1/3 17:59
31-
* @description:
29+
* ReactiveClusterRequest
30+
*
31+
* @author yuanjinzhong
3232
*/
3333
public class ReactiveClusterRequest extends AbstractClusterRequest<ClientRequest> {
3434

joylive-plugin/joylive-router/joylive-router-springcloud2/src/main/java/com/jd/live/agent/plugin/router/springcloud/v2/response/ReactiveClusterResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
import java.util.Map;
2929

3030
/**
31-
* @author: yuanjinzhong
32-
* @date: 2025/1/3 18:00
33-
* @description:
31+
* ReactiveClusterResponse
32+
*
33+
* @author yuanjinzhong
3434
*/
3535
public class ReactiveClusterResponse extends AbstractHttpOutboundResponse<ClientResponse> {
3636

0 commit comments

Comments
 (0)