github-advanced-security[bot] commented on code in PR #1638:
URL: https://github.com/apache/syncope/pull/1638#discussion_r4730622426
##########
core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/macro/MacroActions.java:
##########
@@ -31,31 +31,31 @@
*/
public interface MacroActions {
- default Optional<String> getDefaultValue(String formProperty) {
+ default Optional<String> getDefaultValue(final String formProperty) {
return Optional.empty();
}
- default Map<String, String> getDropdownValues(String formProperty) {
+ default Map<String, String> getDropdownValues(final String formProperty) {
return Map.of();
}
- default void validate(SyncopeForm form, Map<String, Object> vars) throws
ValidationException {
+ default void validate(final SyncopeForm form, final Map<String, Object>
vars) throws ValidationException {
// does nothing by default
}
- default void beforeAll(Map<String, Serializable> ctx) {
+ default void beforeAll(final Map<String, Serializable> ctx) {
// does nothing by default
}
- default void beforeCommand(Command<CommandArgs> command, CommandArgs args)
{
+ default void beforeCommand(final Command<CommandArgs> command, final
CommandArgs args) {
// does nothing by default
}
- default void afterCommand(Command<CommandArgs> command, CommandArgs args,
Result result) {
+ default void afterCommand(final Command<CommandArgs> command, final
CommandArgs args, final Result result) {
// does nothing by default
}
- default StringBuilder afterAll(Map<String, Serializable> ctx,
StringBuilder output) {
+ default StringBuilder afterAll(final Map<String, Serializable> ctx, final
StringBuilder output) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'ctx' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2739)
##########
core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/api/LogicActions.java:
##########
@@ -29,27 +29,27 @@
*/
public interface LogicActions {
- default <C extends AnyCR> C beforeCreate(C input) {
+ default <C extends AnyCR> C beforeCreate(final C input) {
return input;
}
- default <A extends AnyTO> A afterCreate(A input, List<PropagationStatus>
statuses) {
+ default <A extends AnyTO> A afterCreate(final A input, final
List<PropagationStatus> statuses) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'statuses' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2729)
##########
core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/api/LogicActions.java:
##########
@@ -29,27 +29,27 @@
*/
public interface LogicActions {
- default <C extends AnyCR> C beforeCreate(C input) {
+ default <C extends AnyCR> C beforeCreate(final C input) {
return input;
}
- default <A extends AnyTO> A afterCreate(A input, List<PropagationStatus>
statuses) {
+ default <A extends AnyTO> A afterCreate(final A input, final
List<PropagationStatus> statuses) {
return input;
}
- default <U extends AnyUR> U beforeUpdate(U input) {
+ default <U extends AnyUR> U beforeUpdate(final U input) {
return input;
}
- default <A extends AnyTO> A afterUpdate(A input, List<PropagationStatus>
statuses) {
+ default <A extends AnyTO> A afterUpdate(final A input, final
List<PropagationStatus> statuses) {
return input;
}
- default <A extends AnyTO> A beforeDelete(A input) {
+ default <A extends AnyTO> A beforeDelete(final A input) {
return input;
}
- default <A extends AnyTO> A afterDelete(A input, List<PropagationStatus>
statuses) {
+ default <A extends AnyTO> A afterDelete(final A input, final
List<PropagationStatus> statuses) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'statuses' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2727)
##########
ext/saml2sp4ui/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/SAML2SP4UIIdPActions.java:
##########
@@ -25,19 +25,19 @@
public interface SAML2SP4UIIdPActions {
- default UserCR beforeCreate(UserCR input, SAML2LoginResponse
loginResponse) {
+ default UserCR beforeCreate(final UserCR input, final SAML2LoginResponse
loginResponse) {
return input;
}
- default UserTO afterCreate(UserTO input, SAML2LoginResponse loginResponse)
{
+ default UserTO afterCreate(final UserTO input, final SAML2LoginResponse
loginResponse) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'loginResponse' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2737)
##########
ext/oidcc4ui/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/OIDCC4UIProviderActions.java:
##########
@@ -25,19 +25,19 @@
public interface OIDCC4UIProviderActions {
- default UserCR beforeCreate(UserCR input, OIDCLoginResponse loginResponse)
{
+ default UserCR beforeCreate(final UserCR input, final OIDCLoginResponse
loginResponse) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'loginResponse' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2734)
##########
ext/saml2sp4ui/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/SAML2SP4UIIdPActions.java:
##########
@@ -25,19 +25,19 @@
public interface SAML2SP4UIIdPActions {
- default UserCR beforeCreate(UserCR input, SAML2LoginResponse
loginResponse) {
+ default UserCR beforeCreate(final UserCR input, final SAML2LoginResponse
loginResponse) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'loginResponse' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2738)
##########
core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/AuditEventProcessor.java:
##########
@@ -25,7 +25,7 @@
@FunctionalInterface
public interface AuditEventProcessor {
- default Set<OpEvent> getEvents(String domain) {
+ default Set<OpEvent> getEvents(final String domain) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'domain' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2730)
##########
core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/api/LogicActions.java:
##########
@@ -29,27 +29,27 @@
*/
public interface LogicActions {
- default <C extends AnyCR> C beforeCreate(C input) {
+ default <C extends AnyCR> C beforeCreate(final C input) {
return input;
}
- default <A extends AnyTO> A afterCreate(A input, List<PropagationStatus>
statuses) {
+ default <A extends AnyTO> A afterCreate(final A input, final
List<PropagationStatus> statuses) {
return input;
}
- default <U extends AnyUR> U beforeUpdate(U input) {
+ default <U extends AnyUR> U beforeUpdate(final U input) {
return input;
}
- default <A extends AnyTO> A afterUpdate(A input, List<PropagationStatus>
statuses) {
+ default <A extends AnyTO> A afterUpdate(final A input, final
List<PropagationStatus> statuses) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'statuses' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2728)
##########
ext/oidcc4ui/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/OIDCC4UIProviderActions.java:
##########
@@ -25,19 +25,19 @@
public interface OIDCC4UIProviderActions {
- default UserCR beforeCreate(UserCR input, OIDCLoginResponse loginResponse)
{
+ default UserCR beforeCreate(final UserCR input, final OIDCLoginResponse
loginResponse) {
return input;
}
- default UserTO afterCreate(UserTO input, OIDCLoginResponse loginResponse) {
+ default UserTO afterCreate(final UserTO input, final OIDCLoginResponse
loginResponse) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'loginResponse' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2733)
##########
core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/macro/MacroActions.java:
##########
@@ -31,31 +31,31 @@
*/
public interface MacroActions {
- default Optional<String> getDefaultValue(String formProperty) {
+ default Optional<String> getDefaultValue(final String formProperty) {
return Optional.empty();
}
- default Map<String, String> getDropdownValues(String formProperty) {
+ default Map<String, String> getDropdownValues(final String formProperty) {
return Map.of();
}
- default void validate(SyncopeForm form, Map<String, Object> vars) throws
ValidationException {
+ default void validate(final SyncopeForm form, final Map<String, Object>
vars) throws ValidationException {
// does nothing by default
}
- default void beforeAll(Map<String, Serializable> ctx) {
+ default void beforeAll(final Map<String, Serializable> ctx) {
// does nothing by default
}
- default void beforeCommand(Command<CommandArgs> command, CommandArgs args)
{
+ default void beforeCommand(final Command<CommandArgs> command, final
CommandArgs args) {
// does nothing by default
}
- default void afterCommand(Command<CommandArgs> command, CommandArgs args,
Result result) {
+ default void afterCommand(final Command<CommandArgs> command, final
CommandArgs args, final Result result) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'command' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2740)
##########
ext/oidcc4ui/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/OIDCC4UIProviderActions.java:
##########
@@ -25,19 +25,19 @@
public interface OIDCC4UIProviderActions {
- default UserCR beforeCreate(UserCR input, OIDCLoginResponse loginResponse)
{
+ default UserCR beforeCreate(final UserCR input, final OIDCLoginResponse
loginResponse) {
return input;
}
- default UserTO afterCreate(UserTO input, OIDCLoginResponse loginResponse) {
+ default UserTO afterCreate(final UserTO input, final OIDCLoginResponse
loginResponse) {
return input;
}
- default UserUR beforeUpdate(UserUR input, OIDCLoginResponse loginResponse)
{
+ default UserUR beforeUpdate(final UserUR input, final OIDCLoginResponse
loginResponse) {
return input;
}
- default UserTO afterUpdate(UserTO input, OIDCLoginResponse loginResponse) {
+ default UserTO afterUpdate(final UserTO input, final OIDCLoginResponse
loginResponse) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'loginResponse' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2731)
##########
ext/saml2sp4ui/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/SAML2SP4UIIdPActions.java:
##########
@@ -25,19 +25,19 @@
public interface SAML2SP4UIIdPActions {
- default UserCR beforeCreate(UserCR input, SAML2LoginResponse
loginResponse) {
+ default UserCR beforeCreate(final UserCR input, final SAML2LoginResponse
loginResponse) {
return input;
}
- default UserTO afterCreate(UserTO input, SAML2LoginResponse loginResponse)
{
+ default UserTO afterCreate(final UserTO input, final SAML2LoginResponse
loginResponse) {
return input;
}
- default UserUR beforeUpdate(UserUR input, SAML2LoginResponse
loginResponse) {
+ default UserUR beforeUpdate(final UserUR input, final SAML2LoginResponse
loginResponse) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'loginResponse' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2736)
##########
ext/oidcc4ui/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/OIDCC4UIProviderActions.java:
##########
@@ -25,19 +25,19 @@
public interface OIDCC4UIProviderActions {
- default UserCR beforeCreate(UserCR input, OIDCLoginResponse loginResponse)
{
+ default UserCR beforeCreate(final UserCR input, final OIDCLoginResponse
loginResponse) {
return input;
}
- default UserTO afterCreate(UserTO input, OIDCLoginResponse loginResponse) {
+ default UserTO afterCreate(final UserTO input, final OIDCLoginResponse
loginResponse) {
return input;
}
- default UserUR beforeUpdate(UserUR input, OIDCLoginResponse loginResponse)
{
+ default UserUR beforeUpdate(final UserUR input, final OIDCLoginResponse
loginResponse) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'loginResponse' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2732)
##########
ext/saml2sp4ui/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/SAML2SP4UIIdPActions.java:
##########
@@ -25,19 +25,19 @@
public interface SAML2SP4UIIdPActions {
- default UserCR beforeCreate(UserCR input, SAML2LoginResponse
loginResponse) {
+ default UserCR beforeCreate(final UserCR input, final SAML2LoginResponse
loginResponse) {
return input;
}
- default UserTO afterCreate(UserTO input, SAML2LoginResponse loginResponse)
{
+ default UserTO afterCreate(final UserTO input, final SAML2LoginResponse
loginResponse) {
return input;
}
- default UserUR beforeUpdate(UserUR input, SAML2LoginResponse
loginResponse) {
+ default UserUR beforeUpdate(final UserUR input, final SAML2LoginResponse
loginResponse) {
return input;
}
- default UserTO afterUpdate(UserTO input, SAML2LoginResponse loginResponse)
{
+ default UserTO afterUpdate(final UserTO input, final SAML2LoginResponse
loginResponse) {
Review Comment:
## CodeQL / Useless parameter
The parameter 'loginResponse' is never used.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2735)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]