Skip to content

Commit 9990bd2

Browse files
committed
Fix checkstyle errors
See spring-projectsgh-25771
1 parent 92b2c45 commit 9990bd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-web/src/main/java/org/springframework/http/codec/json/KotlinSerializationJsonDecoder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public Flux<Object> decode(Publisher<DataBuffer> inputStream, ResolvableType ele
7979

8080
@Override
8181
public Mono<Object> decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) {
82-
return stringDecoder
82+
return this.stringDecoder
8383
.decodeToMono(inputStream, elementType, mimeType, hints)
8484
.map(jsonText -> this.json.decodeFromString(serializer(elementType.getType()), jsonText));
8585
}

spring-web/src/main/java/org/springframework/http/codec/json/KotlinSerializationJsonEncoder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public Flux<DataBuffer> encode(Publisher<?> inputStream, DataBufferFactory buffe
9292
@Override
9393
public DataBuffer encodeValue(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) {
9494
String json = this.json.encodeToString(serializer(valueType.getType()), value);
95-
return charSequenceEncoder.encodeValue(json, bufferFactory, valueType, mimeType, null);
95+
return this.charSequenceEncoder.encodeValue(json, bufferFactory, valueType, mimeType, null);
9696
}
9797

9898
/**

0 commit comments

Comments
 (0)