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

@@ -94,7 +94,7 @@ public final class OAuth2AccessTokenResponse {
/**
* A builder for {@link OAuth2AccessTokenResponse}.
*/
public static class Builder {
public static final class Builder {
private String tokenValue;

View File

@@ -226,7 +226,7 @@ public final class OAuth2AuthorizationRequest implements Serializable {
/**
* A builder for {@link OAuth2AuthorizationRequest}.
*/
public static class Builder {
public static final class Builder {
private String authorizationUri;

View File

@@ -118,7 +118,7 @@ public final class OAuth2AuthorizationResponse {
/**
* A builder for {@link OAuth2AuthorizationResponse}.
*/
public static class Builder {
public static final class Builder {
private String redirectUri;