Skip to content

Commit

Permalink
docfix deprecated functions (#301)
Browse files Browse the repository at this point in the history
* docfix
  • Loading branch information
fannemel authored Jan 24, 2022
1 parent 87bf5bf commit 4393436
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,13 @@ public int getStartPlus() {
}

/**
* Setter for property startPlus. NB! Deprecated and replaced by firstPlusFractionNumber?
* Setter for property firstPlusFractionNumber.
*
* @param startPlus New value of property startPlus.
* @param startPlus New value of property firstPlusFractionNumber.
* @deprecated use {@link #setFirstPlusFractionNumber(int firstPlusFractionNumber)} instead.
*
*/
@Deprecated
public void setStartPlus(int startPlus) {
setFirstPlusFractionNumber(startPlus);
}
Expand Down
10 changes: 4 additions & 6 deletions src/main/java/neqsim/thermo/system/SystemInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,7 @@ public static SystemInterface addFluids(SystemInterface addFluid1, SystemInterfa
public void setForcePhaseTypes(boolean forcePhaseTypes);

/**
* <p>
* setEmptyFluid.
* </p>
* Set the flow rate of all components to zero.
*/
public void setEmptyFluid();

Expand Down Expand Up @@ -2143,9 +2141,9 @@ public double calcBeta() throws neqsim.util.exception.IsNaNException,
public void setPhaseType(int phaseToChange, String phaseTypeName);

/**
* <p>
* removeMoles.
* </p>
* Set the flow rate of all components to zero.
*
* @deprecated use {@link #setEmptyFluid()} instead.
*/
public void removeMoles();

Expand Down
13 changes: 2 additions & 11 deletions src/main/java/neqsim/thermo/system/SystemThermo.java
Original file line number Diff line number Diff line change
Expand Up @@ -1299,11 +1299,7 @@ public void removeComponent(String name) {
numberOfComponents--;
}

/**
* {@inheritDoc}
*
* This method set the flow rate of all components to zero.
*/
/** {@inheritDoc} */
@Override
public void setEmptyFluid() {
for (int i = 0; i < getMaxNumberOfPhases(); i++) {
Expand All @@ -1312,12 +1308,7 @@ public void setEmptyFluid() {
totalNumberOfMoles = 0.0;
}

/**
* {@inheritDoc}
*
* This method set the flow rate of all components to zero. This method is depreciated - and the
* setEmptyFluid method should be used.
*/
/** {@inheritDoc} */
@Override
@Deprecated
public void removeMoles() {
Expand Down

0 comments on commit 4393436

Please sign in to comment.