Skip to content

Commit 995d633

Browse files
authored
refact: Eclipse cleanup (#959)
* refact: Eclipse cleanup * style: whitespace
1 parent 2f3e165 commit 995d633

87 files changed

Lines changed: 178 additions & 293 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/java/neqsim/MathLib/generalMath/TDMAsolve.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* @version $Id: $Id
1616
*/
1717
public final class TDMAsolve {
18-
1918
/**
2019
* Dummy constructor, not for use. Class is to be considered static.
2120
*/

src/main/java/neqsim/PVTsimulation/simulation/SlimTubeSim.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public void run() {
170170
/*
171171
* double totalAccumulatedVolumeAtStadardConditions =
172172
* slimTubeNodeSystem[numberOfSlimTubeNodes].getPhase(0).getVolume();
173-
*
173+
*
174174
* if (slimTubeNodeSystem[numberOfSlimTubeNodes].getNumberOfPhases() > 1) {
175175
* totalAccumulatedVolumeAtStadardConditions =
176176
* slimTubeNodeSystem[numberOfSlimTubeNodes].getPhase(1).getVolume(); }
@@ -192,11 +192,11 @@ public void run() {
192192
/*
193193
* double totalAccumulatedVolumeAtStadardConditions =
194194
* slimTubeNodeSystem[numberOfSlimTubeNodes].getPhase(0).getVolume();
195-
*
195+
*
196196
* if (slimTubeNodeSystem[numberOfSlimTubeNodes].getNumberOfPhases() > 1) {
197197
* totalAccumulatedVolumeAtStadardConditions =
198198
* slimTubeNodeSystem[numberOfSlimTubeNodes].getPhase(1).getVolume(); }
199-
*
199+
*
200200
* System.out.println("accumulated VOlume " + totalAccumulatedVolumeAtStadardConditions +
201201
* " total reference volume " + totalReferenceNodeVolumeAtStadardConditions);
202202
* System.out.println("oil recovery ratio" + totalAccumulatedVolumeAtStadardConditions /

src/main/java/neqsim/chemicalReactions/ChemicalReactionOperations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ public boolean solveChemEq(int phase, int type) {
413413
// System.out.println("pressure1");
414414
calcChemRefPot(phase);
415415
// System.out.println("pressure2");
416-
if (firsttime == true || type == 0) {
416+
if (firsttime || type == 0) {
417417
try {
418418
// System.out.println("Calculating initial estimates");
419419
nVector = calcNVector();

src/main/java/neqsim/chemicalReactions/chemicalReaction/ChemicalReaction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,12 @@ public boolean reactantsContains(String[] names) {
376376
test = false;
377377
}
378378
}
379-
if (test == false) {
379+
if (!test) {
380380
break;
381381
}
382382
}
383383

384-
if (test == false) {
384+
if (!test) {
385385
for (int j = 0; j < productNames.length; j++) {
386386
for (int i = 0; i < names.length; i++) {
387387
if (names[i].equals(productNames[j])) {
@@ -391,7 +391,7 @@ public boolean reactantsContains(String[] names) {
391391
test = false;
392392
}
393393
}
394-
if (test == false) {
394+
if (!test) {
395395
break;
396396
}
397397
}

src/main/java/neqsim/fluidMechanics/flowNode/FlowNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public void setBulkSystem(SystemInterface bulkSystem) {
444444
/** {@inheritDoc} */
445445
@Override
446446
public FlowNodeInterface getNextNode() {
447-
return (FlowNodeInterface) this.clone();
447+
return this.clone();
448448
}
449449

450450
/** {@inheritDoc} */

src/main/java/neqsim/physicalProperties/physicalPropertyMethods/gasPhysicalProperties/viscosity/Viscosity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* * Abstract class for Viscosity property.
8-
*
8+
*
99
* @author Even Solbraa
1010
*/
1111
abstract class Viscosity extends

src/main/java/neqsim/physicalProperties/physicalPropertySystem/PhysicalProperties.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ public double getKinematicViscosity() {
339339
}
340340

341341
/** {@inheritDoc} */
342+
@Override
342343
public double getDiffusionCoefficient(int i, int j) {
343344
return diffusivityCalc.getMaxwellStefanBinaryDiffusionCoefficient(i, j);
344345
}

src/main/java/neqsim/processSimulation/SimulationBaseClass.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ public SimulationBaseClass(String name) {
3232
}
3333

3434
/** {@inheritDoc} */
35+
@Override
3536
public UUID getCalculationIdentifier() {
3637
return calcIdentifier;
3738
}
3839

3940
/** {@inheritDoc} */
41+
@Override
4042
public void setCalculationIdentifier(UUID value) {
4143
if (this.calcIdentifier == null || this.calcIdentifier != value) {
4244
this.calcIdentifier = value;
@@ -58,16 +60,19 @@ public void setCalculateSteadyState(boolean steady) {
5860
}
5961

6062
/** {@inheritDoc} */
63+
@Override
6164
public double getTime() {
6265
return this.time;
6366
}
6467

6568
/** {@inheritDoc} */
69+
@Override
6670
public void setTime(double value) {
6771
this.time = value;
6872
}
6973

7074
/** {@inheritDoc} */
75+
@Override
7176
public void increaseTime(double dt) {
7277
if (dt < 0) {
7378
throw new RuntimeException(new InvalidInputException(this, "increaseTime", "dt",

src/main/java/neqsim/processSimulation/measurementDevice/CombustionEmissionsCalculator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import neqsim.processSimulation.processEquipment.stream.StreamInterface;
66

77
public class CombustionEmissionsCalculator extends StreamMeasurementDeviceBaseClass {
8+
private static final long serialVersionUID = 1L;
89

910
// Composition of natural gas (in mole percent)
1011
private static final Map<String, Double> NATURAL_GAS_COMPOSITION = new HashMap<>();

src/main/java/neqsim/processSimulation/mechanicalDesign/separator/SeparatorMechanicalDesign.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public void readDesignSpecifications() {
7878
// design")).getLiquidRetentionTime("API12J", this);
7979
} else {
8080
System.out.println("no separator process design specified......");
81-
return;
8281
}
8382
}
8483

0 commit comments

Comments
 (0)