From 41b39b84d8aaaf4639c31c3b8f15085eb58ec411 Mon Sep 17 00:00:00 2001 From: Florian Dupuy Date: Tue, 1 Mar 2022 15:20:11 +0100 Subject: [PATCH] Fix code smells Signed-off-by: Florian Dupuy --- src/test/java/com/powsybl/nad/svg/EdgeInfoTest.java | 5 ++--- src/test/java/com/powsybl/nad/svg/NetworkTestFactory.java | 5 ++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/powsybl/nad/svg/EdgeInfoTest.java b/src/test/java/com/powsybl/nad/svg/EdgeInfoTest.java index c9d64f7d..e17f459b 100644 --- a/src/test/java/com/powsybl/nad/svg/EdgeInfoTest.java +++ b/src/test/java/com/powsybl/nad/svg/EdgeInfoTest.java @@ -68,18 +68,17 @@ public List getEdgeInfos(Graph graph, ThreeWtEdge edge) { } @Override - public String getArrowPathDIn() { + public String getArrowPathDIn() { // larger arrow return "M-0.2 -0.1 H0.2 L0 0.1z"; } @Override - public String getArrowPathDOut() { + public String getArrowPathDOut() { // thinner arrow return "M-0.05 0.1 H0.05 L0 -0.1z"; } }; } - @Test public void testPerpendicularLabels() { Network network = NetworkTestFactory.createTwoVoltageLevels(); diff --git a/src/test/java/com/powsybl/nad/svg/NetworkTestFactory.java b/src/test/java/com/powsybl/nad/svg/NetworkTestFactory.java index b9b75fed..dc0df69a 100644 --- a/src/test/java/com/powsybl/nad/svg/NetworkTestFactory.java +++ b/src/test/java/com/powsybl/nad/svg/NetworkTestFactory.java @@ -14,7 +14,10 @@ /** * @author Florian Dupuy */ -public class NetworkTestFactory { +public final class NetworkTestFactory { + + private NetworkTestFactory() { + } /** * g1 dl1