make stylesheet final in StaticHttpContentFactory

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2022-12-13 10:48:06 +11:00
parent 9270e62f78
commit 60656ebb72
1 changed files with 1 additions and 14 deletions

View File

@ -20,12 +20,7 @@ import org.eclipse.jetty.util.resource.Resource;
public class StaticHttpContentFactory implements HttpContent.Factory public class StaticHttpContentFactory implements HttpContent.Factory
{ {
private final HttpContent.Factory _factory; private final HttpContent.Factory _factory;
private Resource _styleSheet; private final Resource _styleSheet;
public StaticHttpContentFactory(HttpContent.Factory factory)
{
_factory = factory;
}
public StaticHttpContentFactory(HttpContent.Factory factory, Resource styleSheet) public StaticHttpContentFactory(HttpContent.Factory factory, Resource styleSheet)
{ {
@ -33,14 +28,6 @@ public class StaticHttpContentFactory implements HttpContent.Factory
_styleSheet = styleSheet; _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. * @return Returns the stylesheet as a Resource.
*/ */