Skip to content

Commit b6317fc

Browse files
fix checkstyle spring-projects#2
1 parent dacf0be commit b6317fc

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/HttpSender.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,19 @@ abstract static class HttpPostCall extends Call.Base<Void> {
106106

107107
private final byte[] body;
108108

109-
public HttpPostCall(byte[] body) {
109+
HttpPostCall(byte[] body) {
110110
this.body = body;
111111
}
112112

113-
public byte[] getBody() {
113+
protected byte[] getBody() {
114114
return getBody(true);
115115
}
116116

117-
public byte[] getBody(boolean compressIfNeeded) {
118-
return compressIfNeeded && needsCompression() ? compress(this.body) : this.body;
117+
protected byte[] getBody(boolean compressIfNeeded) {
118+
return (compressIfNeeded && needsCompression()) ? compress(this.body) : this.body;
119119
}
120120

121-
public HttpHeaders getDefaultHeaders() {
121+
protected HttpHeaders getDefaultHeaders() {
122122
HttpHeaders headers = new HttpHeaders();
123123
headers.set("b3", "0");
124124
headers.set("Content-Type", "application/json");

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinRestTemplateSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public Call<Void> clone() {
6767
@Override
6868
protected Void doExecute() {
6969
HttpEntity<byte[]> request = new HttpEntity<>(getBody(), getDefaultHeaders());
70-
restTemplate.exchange(this.endpoint, HttpMethod.POST, request, Void.class);
70+
this.restTemplate.exchange(this.endpoint, HttpMethod.POST, request, Void.class);
7171
return null;
7272
}
7373

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinWebClientSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected Void doExecute() {
6969

7070
@Override
7171
protected void doEnqueue(Callback<Void> callback) {
72-
sendRequest().subscribe(__ -> callback.onSuccess(null), callback::onError);
72+
sendRequest().subscribe((__) -> callback.onSuccess(null), callback::onError);
7373
}
7474

7575
private Mono<ResponseEntity<Void>> sendRequest() {

0 commit comments

Comments
 (0)