Skip to content

Commit

Permalink
Convert private statement constructors to protected
Browse files Browse the repository at this point in the history
  • Loading branch information
sschr15 committed Aug 18, 2024
1 parent a6b226e commit 6930e47
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public class CatchAllStatement extends Statement {
// constructors
// *****************************************************************************

private CatchAllStatement() {
protected CatchAllStatement() {
super(StatementType.CATCH_ALL);
}

private CatchAllStatement(Statement head, Statement handler) {
protected CatchAllStatement(Statement head, Statement handler) {

this();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ public class CatchStatement extends Statement {
// constructors
// *****************************************************************************

private CatchStatement() {
protected CatchStatement() {
super(StatementType.TRY_CATCH);
}

private CatchStatement(Statement head, Statement next, Set<Statement> setHandlers) {
protected CatchStatement(Statement head, Statement next, Set<Statement> setHandlers) {
this();

first = head;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public enum Type {
// constructors
// *****************************************************************************

private DoStatement() {
protected DoStatement() {
super(StatementType.DO);
looptype = Type.INFINITE;

Expand All @@ -38,7 +38,7 @@ private DoStatement() {
incExprent.add(null);
}

private DoStatement(Statement head) {
protected DoStatement(Statement head) {

this();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ public class IfStatement extends Statement {
// constructors
// *****************************************************************************

private IfStatement() {
protected IfStatement() {
super(StatementType.IF);

headexprent.add(null);
}

private IfStatement(Statement head, int regedges, Statement postst) {
protected IfStatement(Statement head, int regedges, Statement postst) {

this();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class SequenceStatement extends Statement {
// constructors
// *****************************************************************************

private SequenceStatement() {
protected SequenceStatement() {
super(StatementType.SEQUENCE);
}

Expand All @@ -38,7 +38,7 @@ public SequenceStatement(List<? extends Statement> lst) {
first = stats.get(0);
}

private SequenceStatement(Statement head, Statement tail) {
protected SequenceStatement(Statement head, Statement tail) {

this(Arrays.asList(head, tail));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ public class SwitchStatement extends Statement {
// constructors
// *****************************************************************************

private SwitchStatement() {
protected SwitchStatement() {
super(StatementType.SWITCH);

headexprent.add(null);
}

private SwitchStatement(Statement head, Statement poststat) {
protected SwitchStatement(Statement head, Statement poststat) {

this();

Expand Down

0 comments on commit 6930e47

Please sign in to comment.