Skip to content

Commit

Permalink
merge master into branch (#535)
Browse files Browse the repository at this point in the history
* chore: update plugin versions, switch to using jdk 11 to compile (#532)

* javadoc fixes for jdk11 (#534)

Co-authored-by: fannemel <fannemel@gmail.com>
Co-authored-by: Åsmund Våge Fannemel <34712686+asmfstatoil@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 30, 2022
1 parent b5cadb5 commit b3217ae
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 26 deletions.
25 changes: 11 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<version>3.1.0</version>
<executions>
<execution>
<id>enforce-maven</id>
Expand All @@ -112,7 +112,7 @@
<configuration>
<rules>
<requireMavenVersion>
<version>3.2.5</version>
<version>3.3.9</version>
</requireMavenVersion>
</rules>
</configuration>
Expand All @@ -122,7 +122,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
<version>3.3.0</version>
<configuration>
<archive>
<manifest>
Expand All @@ -134,7 +134,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.2.7</version>
<version>1.3.0</version>
<configuration>
<updatePomFile>true</updatePomFile>
</configuration>
Expand All @@ -158,7 +158,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>3.4.0</version>
<executions>
<execution>
<phase>package</phase>
Expand All @@ -171,10 +171,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.9.0</version>
<version>3.10.1</version>
<configuration>
<source>11</source>
<target>11</target>
<release>11</release> <!-- Upgrade jdk version to 11 if you are having issues compiling -->
<encoding>${project.build.sourceEncoding}</encoding>
<!-- Uncomment below to get compiler warnings
<compilerArgs>
Expand All @@ -187,26 +186,24 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.1</version>
<version>3.4.1</version>
<configuration>
<show>private</show>
<nohelp>true</nohelp>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.0.0-M7</version>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.0.0-M7</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<version>0.8.8</version>
<configuration>
<excludes>
<exclude>neqsim/physicalProperties/util/parameterFitting/**/*</exclude>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public Compressor(boolean interpolateMapLookup) {
/**
* Constructor for Compressor.
*
* @param name
* @param name Name of compressor
*/
public Compressor(String name) {
super(name);
Expand All @@ -118,7 +118,7 @@ public Compressor(String name, StreamInterface inletStream) {
* Constructor for Compressor.
* </p>
*
* @param name
* @param name Name of compressor
* @param interpolateMapLookup a boolean
*/
public Compressor(String name, boolean interpolateMapLookup) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ public void setOutStream(int streamNumber, StreamInterface outStream) {
* <p>
* runSpecifiedStream.
* </p>
*
* @param id UUID of run
*/
public void runSpecifiedStream(UUID id) {
int nonOutStreamSpecifiedStreamNumber = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ public void runTransient(double dt, UUID id) {
* </p>
*
* @param dt a double
* @param id UUID of run
*/
public void runController(double dt, UUID id) {
if (hasController) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class Standard_ISO6976 extends neqsim.standards.Standard
/**
* Constructor for Standard_ISO6976.
*
* @param thermoSystem
* @param thermoSystem SystemInterface to base object on
*/
public Standard_ISO6976(SystemInterface thermoSystem) {
this("Standard_ISO6976",
Expand All @@ -92,7 +92,7 @@ public Standard_ISO6976(SystemInterface thermoSystem) {
*
* @param name Name of standard
* @param description Description of standard
* @param thermoSystem
* @param thermoSystem SystemInterface to base object on
*/
public Standard_ISO6976(String name, String description, SystemInterface thermoSystem) {
super(name, description, thermoSystem);
Expand Down
15 changes: 11 additions & 4 deletions src/main/java/neqsim/thermo/FluidCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* <p>
* FluidCreator class.
* </p>
*
*
* @author esol
* @version $Id: $Id
*/
Expand All @@ -19,6 +19,8 @@ public class FluidCreator {
public static String thermoMixingRule = "classic";

/**
* Create SystemInterface.
*
* @param componentNames name of components to be added to a fluid
* @return a fluid object (SystemInterface)
*/
Expand All @@ -32,6 +34,8 @@ public static SystemInterface create(String[] componentNames) {
}

/**
* Create SystemInterface.
*
* @param componentNames name of components to be added to a fluid
* @param flowrate flow rate
* @param unit unit of flow rate
Expand All @@ -46,9 +50,12 @@ public static SystemInterface create(String[] componentNames, double[] flowrate,
return fluid.createFluid(componentNames, flowrate, unit);
}

/**"
* @param fluidType fluid type can be "dry gas", "water", "air", "gas condensate", "combustion air"...
* @return
/**
* Create SystemInterface.
*
* @param fluidType fluid type can be "dry gas", "water", "air", "gas condensate", "combustion
* air"...
* @return a fluid object (SystemInterface)
*/
public static SystemInterface create(String fluidType) {
Fluid fluid = new Fluid();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1504,9 +1504,7 @@ public void Finit(PhaseInterface phase, double temperature, double pressure,
public double getChemicalPotentialdV(PhaseInterface phase);

/**
* <p>
* getPureComponentHeatOfVaporization.
* </p>
* Calculates the pure component heat of vaporization in J/mol.
*
* @param temperature a double
* @return a double
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/neqsim/thermo/system/SystemInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -2491,6 +2491,7 @@ public void setImplementedCompositionDeriativesofFugacity(
* @param charFlowrate an array of {@link double} objects
* @param molarMass an array of {@link double} objects
* @param relativedensity an array of {@link double} objects
* @param lastIsPlusFraction True if last fraction is a Plus fraction
*/
public void addOilFractions(String[] charNames, double[] charFlowrate, double[] molarMass,
double[] relativedensity, boolean lastIsPlusFraction);
Expand All @@ -2504,6 +2505,7 @@ public void addOilFractions(String[] charNames, double[] charFlowrate, double[]
* @param charFlowrate an array of {@link double} objects
* @param molarMass an array of {@link double} objects
* @param relativedensity an array of {@link double} objects
* @param lastIsPlusFraction True if last fraction is a Plus fraction
* @param lumpComponents True if component should be lumped
* @param numberOfPseudoComponents number of pseudo components
*/
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/neqsim/thermo/system/SystemThermo.java
Original file line number Diff line number Diff line change
Expand Up @@ -2225,7 +2225,7 @@ public final PhaseInterface getLiquidPhase() {
return null;
}

/** @{inheritdoc} */
/** {@inheritDoc} */
@Override
public boolean isPhase(int i) {
if (i > phaseArray.length) {
Expand Down

0 comments on commit b3217ae

Please sign in to comment.