Skip to content

Commit c5a32f3

Browse files
Remove the private field springs since it's deprecated and private
No need to keep it around, only ForceLayout can see it anyway Signed-off-by: NathanDissoubray <nathan.dissoubray@rte-france.com>
1 parent d12169f commit c5a32f3

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

diagram-util/src/main/java/com/powsybl/diagram/util/forcelayout/ForceLayout.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@
5454
* @author Nathan Dissoubray {@literal <nathan.dissoubray at rte-france.com>}
5555
*/
5656
public class ForceLayout<V, E> {
57-
/**
58-
* @deprecated This will be removed along the Spring class and the getSprings method
59-
*/
60-
@Deprecated(since = "4.9.0", forRemoval = true)
61-
private final Set<Spring> springs = new LinkedHashSet<>();
6257

6358
private final ForceGraph<V, E> forceGraph;
6459
private final SpringyParameters.Builder springyParametersBuilder = new SpringyParameters.Builder();
@@ -141,7 +136,7 @@ public Vector2D getStablePosition(V vertex) {
141136
*/
142137
@Deprecated(since = "4.9.0", forRemoval = true)
143138
public Set<Spring> getSprings() {
144-
return springs;
139+
return Collections.emptySet();
145140
}
146141

147142
public void toSVG(Function<V, String> tooltip, Path path) throws IOException {

0 commit comments

Comments
 (0)