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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user