Remove redundant code

See gh-19000
This commit is contained in:
thelproad
2019-11-13 11:00:22 +08:00
committed by Stephane Nicoll
parent 0c5bb60384
commit 65ab82b3cd
4 changed files with 4 additions and 8 deletions

View File

@@ -51,7 +51,7 @@ public class EndpointMediaTypes {
* @since 2.2.0
*/
public EndpointMediaTypes(String... producedAndConsumed) {
this((producedAndConsumed != null) ? Arrays.asList(producedAndConsumed) : (List<String>) null);
this((producedAndConsumed != null) ? Arrays.asList(producedAndConsumed) : null);
}
/**