Skip to content

Commit

Permalink
Replace blanket ParameterNumber warning suppression with explicit in-…
Browse files Browse the repository at this point in the history
…source declarations

Signed-off-by: Marko Strukelj <[email protected]>
  • Loading branch information
mstruk committed Dec 14, 2021
1 parent f7ec688 commit c64b2b6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<module name="MethodLength"/>
<module name="ParameterNumber">
<!-- default is 8 -->
<property name="max" value="15"/>
<property name="max" value="13"/>
</module>
<module name="ClassDataAbstractionCoupling">
<!-- default is 7 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class ValidatorKey {
private final int connectTimeout;
private final int readTimeout;

@SuppressWarnings("checkstyle:ParameterNumber")
ValidatorKey(String validIssuerUri,
String audience,
String customClaimCheck,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public class JWTSignatureValidator implements TokenValidator {
* @param connectTimeoutSeconds The maximum time to wait for connection to authorization server to be established (in seconds)
* @param readTimeoutSeconds The maximum time to wait for response from authorization server after connection has been established and request sent (in seconds)
*/
@SuppressWarnings("checkstyle:ParameterNumber")
public JWTSignatureValidator(String keysEndpointUri,
SSLSocketFactory socketFactory,
HostnameVerifier verifier,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public class OAuthIntrospectionValidator implements TokenValidator {
* @param connectTimeoutSeconds The maximum time to wait for connection to authorization server to be established (in seconds)
* @param readTimeoutSeconds The maximum time to wait for response from authorization server after connection has been established and request sent (in seconds)
*/
@SuppressWarnings("checkstyle:ParameterNumber")
public OAuthIntrospectionValidator(String introspectionEndpointUri,
SSLSocketFactory socketFactory,
HostnameVerifier verifier,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ public void configure(Map<String, ?> configs, String saslMechanism, List<AppConf
}
}

@SuppressWarnings("checkstyle:ParameterNumber")
private void setupIntrospectionValidator(String validIssuerUri, String usernameClaim, String fallbackUsernameClaim, String fallbackUsernamePrefix,
String groupQuery, String groupDelimiter, String clientId, String clientSecret, String audience, String customClaimCheck,
String sslTruststore, String sslPassword, String sslType, String sslRnd) {
Expand Down Expand Up @@ -321,6 +322,7 @@ private void setupIntrospectionValidator(String validIssuerUri, String usernameC
validator = Services.getInstance().getValidators().get(vkey, factory);
}

@SuppressWarnings("checkstyle:ParameterNumber")
private void setupJWKSValidator(String jwksUri, String validIssuerUri, boolean checkTokenType,
String usernameClaim, String fallbackUsernameClaim, String fallbackUsernamePrefix,
String groupQuery, String groupDelimiter, String audience, String customClaimCheck,
Expand Down

0 comments on commit c64b2b6

Please sign in to comment.