Skip to content

Commit

Permalink
fix for compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jun 9, 2023
1 parent f7ff2db commit 174ee09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions model/certification-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
<groupId>com.evolveum.commons</groupId>
<artifactId>util</artifactId>
</dependency>
<dependency>
<groupId>com.evolveum.prism</groupId>
<artifactId>prism-api</artifactId>
</dependency>

<dependency>
<groupId>com.evolveum.midpoint.infra</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@Component
public class AuthorizationMigrator {

private static final Map<String, ActionMigrator> migratorsMap = Map.ofEntries(
private static final Map<String, ActionMigrator> MIGRATORS_MAP = Map.ofEntries(
entry(
ModelAuthorizationAction.READ_OWN_CERTIFICATION_DECISIONS.getUrl(),
(migrated, original) -> {
Expand Down Expand Up @@ -70,7 +70,7 @@ private static void add(List<AuthorizationType> migrated, AuthorizationType orig
migrated.add(original);

List<String> actions = original.getAction();
for (Map.Entry<String, ActionMigrator> entry : migratorsMap.entrySet()) {
for (Map.Entry<String, ActionMigrator> entry : MIGRATORS_MAP.entrySet()) {
if (actions.contains(entry.getKey())) {
entry.getValue().migrate(migrated, original);
}
Expand Down

0 comments on commit 174ee09

Please sign in to comment.