Skip to content

Commit e82e99b

Browse files
committed
review
Signed-off-by: basseche <bassel.el-cheikh_externe@rte-france.com>
1 parent c99580a commit e82e99b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main/java/org/gridsuite/filter/globalfilter/GlobalFilterUtils.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,12 @@ public static List<String> applyGlobalFilterOnNetwork(@Nonnull final Network net
291291
return FiltersUtils.combineFilterResults(allFilterResults, !genericFilters.isEmpty());
292292
}
293293

294-
/** When tab we are filtering on several equipment types, and we have generic filters,
295-
* we consider only equipment types that have one or more generic filter the other types are excluded
294+
/** When we are filtering on several equipment types, and we have generic filters,
295+
* we consider only equipment types that have one or more generic filter. The other types are excluded.
296296
* Substation and Voltage level types include all equipment types, only if there is no other equipment
297-
* type filter
297+
* type filters
298+
* @param equipmentType : equipment type that should be processed
299+
* @param genericFilters : generic filters list
298300
* **/
299301
public static boolean shouldProcessEquipmentType(@Nonnull final EquipmentType equipmentType,
300302
@Nonnull final List<AbstractFilter>genericFilters) {
@@ -307,7 +309,7 @@ public static boolean shouldProcessEquipmentType(@Nonnull final EquipmentType eq
307309
return true;
308310
}
309311

310-
// keep only equipment types that have at least one corresponding generic filter
312+
// equipment type should have at least one corresponding generic filter
311313
return genericFilters.stream().anyMatch(filter -> filter.getEquipmentType().equals(equipmentType));
312314
}
313315
return true;

0 commit comments

Comments
 (0)