Skip to content

Commit

Permalink
JNG-5368 fix review items
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Jan 3, 2024
1 parent 680bd5d commit acde141
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,17 @@ public static List<RelationType> getAccessRelationsTypes(Application application
}

public static String accessJoinedImportTokens(Application application) {
HashSet<String> tokens = new HashSet<>();
HashSet<String> tokens = new LinkedHashSet<>();
if (application.getPrincipal() != null) {
tokens.add(classDataName(application.getPrincipal(), "Stored"));
}
List<RelationType> relations = getAccessRelationsTypes(application);
relations.forEach(relation -> {
tokens.add(classDataName(relation.getTarget(), "Stored"));
});
getAccessRelationsTypes(application)
.forEach(relation -> tokens.add(classDataName(relation.getTarget(), "Stored")));
return String.join(", ", tokens);
}

public static String joinedTokensForApiImport(RelationType relation){
HashSet<String> tokens = new HashSet<>();
HashSet<String> tokens = new LinkedHashSet<>();

if (!relation.isIsAccess()) {
tokens.add(classDataName((ClassType) relation.getOwner(), ""));
Expand Down Expand Up @@ -105,7 +103,7 @@ private static void fillImportTokens(HashSet<String> tokens, RelationType target
}

public static String joinedTokensForApiImportForAccessRelationServiceImpl(RelationType relation){
HashSet<String> tokens = new HashSet<>();
HashSet<String> tokens = new LinkedHashSet<>();

if (!relation.isIsAccess()) {
tokens.add(classDataName((ClassType) relation.getOwner(), ""));
Expand All @@ -124,7 +122,7 @@ public static String joinedTokensForApiImportForAccessRelationServiceImpl(Relati
}

public static String joinedTokensForApiImportClassService(ClassType classType){
HashSet<String> tokens = new HashSet<>();
HashSet<String> tokens = new LinkedHashSet<>();

tokens.add(classDataName(classType, ""));
tokens.add(classDataName(classType, "Stored"));
Expand Down

0 comments on commit acde141

Please sign in to comment.