Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne LESOT <[email protected]>
  • Loading branch information
EtienneLt committed Dec 9, 2024
1 parent a9562d3 commit 8ccff89
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public enum RegulatingTapChangerType {

public static RegulatingTapChangerType getThreeWindingType(ThreeSides side, RegulatingTapChangerType type) {
return switch (type) {
case RATIO_TAP_CHANGER ->
getSideType(side, PHASE_TAP_CHANGER_SIDE_ONE, PHASE_TAP_CHANGER_SIDE_TWO, PHASE_TAP_CHANGER_SIDE_THREE);
case PHASE_TAP_CHANGER ->
getSideType(side, PHASE_TAP_CHANGER_SIDE_ONE, PHASE_TAP_CHANGER_SIDE_TWO, PHASE_TAP_CHANGER_SIDE_THREE);
case RATIO_TAP_CHANGER ->
getSideType(side, RATIO_TAP_CHANGER_SIDE_ONE, RATIO_TAP_CHANGER_SIDE_TWO, RATIO_TAP_CHANGER_SIDE_THREE);
default -> throw new PowsyblException("type to select a three winding tap changer type " +
"must be RATIO_TAP_CHANGER or PHASE_TAP_CHANGER");
Expand Down

0 comments on commit 8ccff89

Please sign in to comment.