Reduce method visibility when possible

Reduce method visibility for package private classes when possible.

In the case of abstract classes that will eventually be made public,
the class has been made public and a package-private constructor has
been added.

Issue gh-8945
This commit is contained in:
Phillip Webb
2020-07-29 22:05:08 -07:00
committed by Rob Winch
parent ec6a4cb3f0
commit 8d3f039f76
155 changed files with 508 additions and 477 deletions

View File

@@ -214,7 +214,7 @@ public class DefaultLoginPageGeneratingFilterTests {
return null;
}
public String getClaimedIdentityFieldName() {
String getClaimedIdentityFieldName() {
return "unused";
}

View File

@@ -137,7 +137,7 @@ public class WebAsyncManagerIntegrationFilterTests {
return this.t;
}
public void join() throws InterruptedException {
void join() throws InterruptedException {
this.t.join();
}

View File

@@ -394,7 +394,7 @@ public class CsrfFilterTests {
super(actual, CsrfTokenAssert.class);
}
public CsrfTokenAssert isEqualTo(CsrfToken expected) {
CsrfTokenAssert isEqualTo(CsrfToken expected) {
assertThat(this.actual.getHeaderName()).isEqualTo(expected.getHeaderName());
assertThat(this.actual.getParameterName()).isEqualTo(expected.getParameterName());
assertThat(this.actual.getToken()).isEqualTo(expected.getToken());