Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Avishka-Shamendra committed Feb 28, 2025
1 parent c9e0856 commit 83c56b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public Environment(Environment environment) {
this.additionalProperties = new HashMap<>(environment.additionalProperties);
this.visibilityRoles = environment.visibilityRoles;
this.visibility = environment.visibility;
this.permissions = environment.permissions;
}
private GatewayVisibilityPermissionConfigurationDTO permissions = new GatewayVisibilityPermissionConfigurationDTO();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
Expand Down Expand Up @@ -4780,11 +4781,11 @@ public static boolean hasIntersection(String[] arr1, String[] arr2) {
Set<String> set = new HashSet<>();

for (String element : arr1) {
set.add(element);
set.add(element.toLowerCase(Locale.ENGLISH));
}

for (String element : arr2) {
if (set.contains(element)) {
if (set.contains(element.toLowerCase(Locale.ENGLISH))) {
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5374,11 +5374,11 @@ public static boolean hasIntersection(String[] arr1, String[] arr2) {
Set<String> set = new HashSet<>();

for (String element : arr1) {
set.add(element);
set.add(element.toLowerCase(Locale.ENGLISH));
}

for (String element : arr2) {
if (set.contains(element)) {
if (set.contains(element.toLowerCase(Locale.ENGLISH))) {
return true;
}
}
Expand Down

0 comments on commit 83c56b5

Please sign in to comment.