Skip to content

Commit

Permalink
simplify default method
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil committed Feb 22, 2024
1 parent 20d3327 commit 4c9be0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/main/java/neqsim/thermo/system/SystemInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,9 @@ public default void initThermoProperties() {
* display.
* </p>
*/
public void display();
public default void display() {
display(this.getFluidName());
}

/**
* <p>
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/neqsim/thermo/system/SystemThermo.java
Original file line number Diff line number Diff line change
Expand Up @@ -3619,12 +3619,6 @@ public String[][] createTable(String name) {
return table;
}

/** {@inheritDoc} */
@Override
public void display() {
display(this.getFluidName());
}

/** {@inheritDoc} */
@Override
public void display(String name) {
Expand Down

0 comments on commit 4c9be0b

Please sign in to comment.