From 60656ebb727f1686148c08b1157af2fa3b060c43 Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Tue, 13 Dec 2022 10:48:06 +1100 Subject: [PATCH] make stylesheet final in StaticHttpContentFactory Signed-off-by: Lachlan Roberts --- .../http/content/StaticHttpContentFactory.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/content/StaticHttpContentFactory.java b/jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/content/StaticHttpContentFactory.java index 5ade215addf..6fcfabab2f2 100644 --- a/jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/content/StaticHttpContentFactory.java +++ b/jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/content/StaticHttpContentFactory.java @@ -20,12 +20,7 @@ import org.eclipse.jetty.util.resource.Resource; public class StaticHttpContentFactory implements HttpContent.Factory { private final HttpContent.Factory _factory; - private Resource _styleSheet; - - public StaticHttpContentFactory(HttpContent.Factory factory) - { - _factory = factory; - } + private final Resource _styleSheet; public StaticHttpContentFactory(HttpContent.Factory factory, Resource styleSheet) { @@ -33,14 +28,6 @@ public class StaticHttpContentFactory implements HttpContent.Factory _styleSheet = styleSheet; } - /** - * @param stylesheet The location of the stylesheet to be used as a String. - */ - public void setStyleSheet(Resource stylesheet) - { - _styleSheet = stylesheet; - } - /** * @return Returns the stylesheet as a Resource. */