Clean up warnings and dead code in spring-core module

This commit is contained in:
Sam Brannen
2018-03-11 14:13:30 +01:00
parent 2575c26020
commit 42b4f6e1ff
18 changed files with 151 additions and 158 deletions

View File

@@ -18,7 +18,6 @@ package org.springframework.core.codec;
import java.io.IOException;
import java.util.Map;
import java.util.OptionalLong;
import reactor.core.publisher.Flux;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -71,7 +71,6 @@ public class ResourceRegionEncoder extends AbstractEncoder<ResourceRegion> {
}
@Override
@SuppressWarnings("unchecked")
public Flux<DataBuffer> encode(Publisher<? extends ResourceRegion> inputStream,
DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType,
@Nullable Map<String, Object> hints) {