Polish: lamdbas containing only one statement should not nest this statement in a block

This commit is contained in:
igor-suhorukov
2018-02-14 01:22:01 +01:00
committed by Juergen Hoeller
parent 99662bc702
commit 7826567df6
5 changed files with 8 additions and 22 deletions
@@ -110,9 +110,7 @@ public class XmlEventDecoder extends AbstractDecoder<XMLEvent> {
InputStream is = dataBuffer.asInputStream();
Iterator eventReader = inputFactory.createXMLEventReader(is);
return Flux.fromIterable((Iterable<XMLEvent>) () -> eventReader)
.doFinally(t -> {
DataBufferUtils.release(dataBuffer);
});
.doFinally(t -> DataBufferUtils.release(dataBuffer));
}
catch (XMLStreamException ex) {
return Mono.error(ex);