Skip to content

Commit 03956a9

Browse files
committed
Remove loading ReportNode powsybl-core bundle where not necessary
Signed-off-by: CARON Alice <[email protected]>
1 parent 657c293 commit 03956a9

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/main/java/com/powsybl/openloadflow/sa/AbstractSecurityAnalysis.java

-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import com.google.common.base.Stopwatch;
1111
import com.powsybl.action.*;
1212
import com.powsybl.commons.PowsyblException;
13-
import com.powsybl.commons.report.PowsyblCoreReportResourceBundle;
1413
import com.powsybl.commons.report.ReportNode;
1514
import com.powsybl.computation.CompletableFutureTask;
1615
import com.powsybl.computation.ComputationManager;
@@ -220,7 +219,6 @@ SecurityAnalysisReport runSync(SecurityAnalysisParameters securityAnalysisParame
220219

221220
ReportNode threadRootNode = partitionNum == 0 ? saReportNode :
222221
ReportNode.newRootReportNode()
223-
.withResourceBundles(PowsyblCoreReportResourceBundle.BASE_NAME)
224222
.withMessageTemplate("threadRoot", "threadRoot")
225223
.build();
226224
reportNodes.set(partitionNum, threadRootNode);

src/main/java/com/powsybl/openloadflow/util/Reports.java

-5
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ public static ReportNode reportPqToPvBuses(ReportNode reportNode, int pqToPvBusC
307307

308308
public static ReportNode reportPvPqSwitchLimit(LfBus controllerBus, int limit, boolean log, Logger logger) {
309309
ReportNode result = ReportNode.newRootReportNode()
310-
.withResourceBundles(PowsyblCoreReportResourceBundle.BASE_NAME)
311310
.withMessageTemplate("pvPqSwitchLimit",
312311
"Bus '${busId}' blocked PQ as it has reached its max number of PQ -> PV switch (${limit})")
313312
.withUntypedValue("busId", controllerBus.getId())
@@ -322,7 +321,6 @@ public static ReportNode reportPvPqSwitchLimit(LfBus controllerBus, int limit, b
322321

323322
public static ReportNode reportPqToPvBusMaxLimit(LfBus controllerBus, LfBus controlledBus, double targetV, boolean log, Logger logger) {
324323
ReportNode result = ReportNode.newRootReportNode()
325-
.withResourceBundles(PowsyblCoreReportResourceBundle.BASE_NAME)
326324
.withMessageTemplate("pqToPvBusMaxLimit",
327325
"Switch bus '${busId}' PQ -> PV, q=maxQ and v=${busV}kV > targetV=${targetV}kV")
328326
.withUntypedValue("busId", controllerBus.getId())
@@ -340,7 +338,6 @@ public static ReportNode reportPqToPvBusMaxLimit(LfBus controllerBus, LfBus cont
340338

341339
public static ReportNode reportPqToPvBusMinLimit(LfBus controllerBus, LfBus controlledBus, double targetV, boolean log, Logger logger) {
342340
ReportNode result = ReportNode.newRootReportNode()
343-
.withResourceBundles(PowsyblCoreReportResourceBundle.BASE_NAME)
344341
.withMessageTemplate("pqToPvBusMinLimit",
345342
"Switch bus '${busId}' PQ -> PV, q=minQ and v=${busV}kV < targetV=${targetV}kV")
346343
.withUntypedValue("busId", controllerBus.getId())
@@ -386,7 +383,6 @@ public static ReportNode reportReactiveControllerBusesToPqMaxQ(LfBus controllerB
386383
boolean log,
387384
Logger logger) {
388385
ReportNode result = ReportNode.newRootReportNode()
389-
.withResourceBundles(PowsyblCoreReportResourceBundle.BASE_NAME)
390386
.withMessageTemplate("reactiveControllerBusesToPqMaxQ",
391387
"Remote reactive power controller bus '${busId}' -> PQ, q=${busQ} > maxQ=${maxQ}")
392388
.withUntypedValue("busId", controllerBus.getId())
@@ -406,7 +402,6 @@ public static ReportNode reportReactiveControllerBusesToPqMinQ(LfBus controllerB
406402
boolean log,
407403
Logger logger) {
408404
ReportNode result = ReportNode.newRootReportNode()
409-
.withResourceBundles(PowsyblCoreReportResourceBundle.BASE_NAME)
410405
.withMessageTemplate("reactiveControllerBusesToPqMinQ",
411406
"Remote reactive power controller bus '${busId}' -> PQ, q=${busQ} < minQ=${minQ}")
412407
.withUntypedValue("busId", controllerBus.getId())

0 commit comments

Comments
 (0)