Make classes final where possible

Update classes that have private constructors so that they are also
declared final. In a few cases, inner-classes used private constructors
but were subclassed. These have now been changed to have package-private
constructors.

Issue gh-8945
This commit is contained in:
Phillip Webb
2020-07-24 19:03:31 -07:00
committed by Rob Winch
parent b5d499e2eb
commit 6894ff5d12
58 changed files with 229 additions and 226 deletions

View File

@@ -144,7 +144,7 @@ public class AbstractConfiguredSecurityBuilderTests {
}
private static class TestConfiguredSecurityBuilder
private static final class TestConfiguredSecurityBuilder
extends AbstractConfiguredSecurityBuilder<Object, TestConfiguredSecurityBuilder> {
private TestConfiguredSecurityBuilder(ObjectPostProcessor<Object> objectPostProcessor) {

View File

@@ -30,7 +30,7 @@ import org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtml
* @author Rob Winch
* @since 5.0
*/
public class WebTestClientHtmlUnitDriverBuilder {
public final class WebTestClientHtmlUnitDriverBuilder {
private final WebTestClient webTestClient;