Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refact: fixed warnings #414

Merged
merged 1 commit into from
May 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public class TestViscosityFit {
*
* @param args an array of {@link java.lang.String} objects
*/
@SuppressWarnings("unused")
public static void main(String[] args) {
LevenbergMarquardt optim = new LevenbergMarquardt();
ArrayList<SampleValue> sampleList = new ArrayList<SampleValue>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public StreamInterface getSplitStream(int i) {
public void run() {
for (int i = 0; i < 2; i++) {
thermoSystem = inletStream.getThermoSystem().clone();
thermoSystem.removeMoles();
thermoSystem.setEmptyFluid();
if (i == 0) {
for (int k = 0; k < thermoSystem.getNumberOfComponents(); k++) {
thermoSystem.addComponent(k,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ public class TestSurfaceTension2 {
// John debug

/**
* <p>main.</p>
* <p>
* main.
* </p>
*
* @param args an array of {@link java.lang.String} objects
*/
@SuppressWarnings("unused")
public static void main(String args[]) {
int gtmethod = 1; // 2; John changed

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package neqsim.processSimulation.measurementDevice;

import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import neqsim.processSimulation.processEquipment.stream.Stream;
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkCPAstatoil;
import neqsim.thermo.system.SystemSrkEos;

class pHProbeTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package neqsim.processSimulation.processEquipment.splitter;

import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.BeforeAll;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import neqsim.processSimulation.processEquipment.stream.Stream;
Expand All @@ -10,7 +9,6 @@
import neqsim.thermo.system.SystemSrkEos;

class ComponentSplitterTest {

static neqsim.thermo.system.SystemInterface testSystem = null;
double pressure_inlet = 85.0;
double temperature_inlet = 35.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
*/
package neqsim.thermodynamicOperations.flashOps;

import static org.junit.jupiter.api.Assertions.*;

import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import neqsim.thermodynamicOperations.ThermodynamicOperations;

/**
Expand Down Expand Up @@ -89,5 +87,4 @@ void testRun4() {
double enthalpy = testSystem.getEnthalpy();
assertEquals(-936973.1969586421, testSystem.getEnthalpy(), 1e-2);
}

}