From e38956096765c39694e44cdda5934cc3afe961cf Mon Sep 17 00:00:00 2001 From: markfisher Date: Mon, 23 Jan 2017 08:44:58 -0500 Subject: [PATCH] make constructor arg MediaType property final --- .../cloud/function/web/flux/FluxResponseBodyEmitter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-function-web/src/main/java/org/springframework/cloud/function/web/flux/FluxResponseBodyEmitter.java b/spring-cloud-function-web/src/main/java/org/springframework/cloud/function/web/flux/FluxResponseBodyEmitter.java index 0f2f95ae2..e32cd29f9 100644 --- a/spring-cloud-function-web/src/main/java/org/springframework/cloud/function/web/flux/FluxResponseBodyEmitter.java +++ b/spring-cloud-function-web/src/main/java/org/springframework/cloud/function/web/flux/FluxResponseBodyEmitter.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2016 the original author or authors. + * Copyright 2013-2017 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. @@ -30,7 +30,7 @@ import reactor.core.publisher.Flux; */ class FluxResponseBodyEmitter extends ResponseBodyEmitter { - private MediaType mediaType; + private final MediaType mediaType; public FluxResponseBodyEmitter(Flux observable) { this(null, null, observable);