|
17 | 17 | /**
|
18 | 18 | * Matches the actual state on the server vs the desired state. Based on the managedFields of SSA.
|
19 | 19 | *
|
20 |
| - * The ide of algorithm is basically trivial, we convert resources to Map/List composition. |
21 |
| - * The actual resource (from the server) is pruned, all the fields which are not mentioed in managedFields |
22 |
| - * of the target manager is removed. Some irrelevant fields are also removed from desired. And the |
23 |
| - * two resulted Maps are compared for equality. The implementation is a bit nasty since have to deal with |
24 |
| - * some specific cases of managedFields format. |
| 20 | + * The ide of algorithm is basically trivial, we convert resources to Map/List composition. The |
| 21 | + * actual resource (from the server) is pruned, all the fields which are not mentioed in |
| 22 | + * managedFields of the target manager is removed. Some irrelevant fields are also removed from |
| 23 | + * desired. And the two resulted Maps are compared for equality. The implementation is a bit nasty |
| 24 | + * since have to deal with some specific cases of managedFields format. |
25 | 25 | *
|
26 | 26 | * @param <R> matched resource type
|
27 | 27 | */
|
@@ -158,7 +158,8 @@ private static boolean isNestedValue(Object managedFieldValue) {
|
158 | 158 |
|
159 | 159 | // list entries referenced by key, or when "k:" prefix is used
|
160 | 160 | private void handleListKeyEntrySet(Map<String, Object> result, Map<String, Object> actualMap,
|
161 |
| - ObjectMapper objectMapper, String keyInActual, Set<Map.Entry<String, Object>> managedEntrySet) { |
| 161 | + ObjectMapper objectMapper, String keyInActual, |
| 162 | + Set<Map.Entry<String, Object>> managedEntrySet) { |
162 | 163 | var valueList = new ArrayList<>();
|
163 | 164 | result.put(keyInActual, valueList);
|
164 | 165 | var actualValueList = (List<Map<String, Object>>) actualMap.get(keyInActual);
|
|
0 commit comments