Skip to content

Commit

Permalink
Refactor forEach loop variable name to 'modifInfos' in TabularModific…
Browse files Browse the repository at this point in the history
…ation.java.

Signed-off-by: Florent MILLOT <[email protected]>
  • Loading branch information
flomillot committed Dec 20, 2023
1 parent 3df6ee2 commit 14edf4f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ public void check(Network network) throws NetworkModificationException {
@Override
public void apply(Network network, Reporter subReporter) {
AtomicInteger applicationFailuresCount = new AtomicInteger(0);
modificationInfos.getModifications().forEach(modificationInfos -> {
modificationInfos.getModifications().forEach(modifInfos -> {
try {
AbstractModification modification = modificationInfos.toModification();
AbstractModification modification = modifInfos.toModification();
modification.check(network);
modification.apply(network);
} catch (PowsyblException e) {
applicationFailuresCount.incrementAndGet();
subReporter.report(Report.builder()
.withKey(modificationInfos.getType().name() + applicationFailuresCount.get())
.withKey(modifInfos.getType().name() + applicationFailuresCount.get())
.withDefaultMessage(e.getMessage())
.withSeverity(TypedValue.WARN_SEVERITY)
.build());
Expand Down

0 comments on commit 14edf4f

Please sign in to comment.