mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
Replace keySet with entrySet
Closes #40064 Signed-off-by: akbarhusainpatel <apatel@intermiles.com> Co-authored-by: akbarhusainpatel <apatel@intermiles.com>
This commit is contained in:
@@ -179,8 +179,9 @@ public class RealmConfigData {
|
||||
if (clients == null) {
|
||||
clients = source.clients;
|
||||
} else {
|
||||
for (String key: source.clients.keySet()) {
|
||||
String val = source.clients.get(key);
|
||||
for (var entry : source.clients.entrySet()) {
|
||||
String key = entry.getKey();
|
||||
String val = entry.getValue();
|
||||
if (!"".equals(val)) {
|
||||
clients.put(key, val);
|
||||
} else {
|
||||
|
||||
@@ -370,8 +370,7 @@ public class ReflectionUtil {
|
||||
// use setter on dest, and getter on source to copy value over
|
||||
Map<String, Field> fieldMap = getAttrFieldsForType(source.getClass());
|
||||
try {
|
||||
for (String attrName : fieldMap.keySet()) {
|
||||
Field field = fieldMap.get(attrName);
|
||||
for (Field field : fieldMap.values()) {
|
||||
Object localValue = field.get(source);
|
||||
if (localValue != null) {
|
||||
field.set(dest, localValue);
|
||||
|
||||
Reference in New Issue
Block a user