From cbafefb991c89d4ed37579946a06a493ba560658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Engelsen?= Date: Tue, 5 Sep 2023 21:34:03 +0200 Subject: [PATCH] refactor: make abstract implementations of interfaces public (#817) Needed to expose these abstract classes to generate typing stubs for NeqSimPython --- src/main/java/neqsim/thermo/component/Component.java | 2 +- src/main/java/neqsim/thermo/component/ComponentEos.java | 2 +- src/main/java/neqsim/thermo/component/ComponentGE.java | 2 +- src/main/java/neqsim/thermo/phase/Phase.java | 2 +- src/main/java/neqsim/thermo/phase/PhaseEos.java | 2 +- src/main/java/neqsim/thermo/system/SystemEos.java | 2 +- src/main/java/neqsim/thermo/system/SystemThermo.java | 2 +- .../java/neqsim/thermodynamicOperations/flashOps/Flash.java | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/neqsim/thermo/component/Component.java b/src/main/java/neqsim/thermo/component/Component.java index 8e7c44c825..ea6b0306e6 100644 --- a/src/main/java/neqsim/thermo/component/Component.java +++ b/src/main/java/neqsim/thermo/component/Component.java @@ -14,7 +14,7 @@ import neqsim.thermo.phase.PhaseInterface; import neqsim.util.database.NeqSimDataBase; -abstract class Component implements ComponentInterface { +public abstract class Component implements ComponentInterface { private static final long serialVersionUID = 1000; static Logger logger = LogManager.getLogger(Component.class); diff --git a/src/main/java/neqsim/thermo/component/ComponentEos.java b/src/main/java/neqsim/thermo/component/ComponentEos.java index 00a327def1..d1b0065b83 100644 --- a/src/main/java/neqsim/thermo/component/ComponentEos.java +++ b/src/main/java/neqsim/thermo/component/ComponentEos.java @@ -34,7 +34,7 @@ /** * @author Even Solbraa */ -abstract class ComponentEos extends Component implements ComponentEosInterface { +public abstract class ComponentEos extends Component implements ComponentEosInterface { private static final long serialVersionUID = 1000; public double a = 1; diff --git a/src/main/java/neqsim/thermo/component/ComponentGE.java b/src/main/java/neqsim/thermo/component/ComponentGE.java index 04aafb72b3..1290137ef0 100644 --- a/src/main/java/neqsim/thermo/component/ComponentGE.java +++ b/src/main/java/neqsim/thermo/component/ComponentGE.java @@ -15,7 +15,7 @@ * * @author Even Solbraa */ -abstract class ComponentGE extends Component implements ComponentGEInterface { +public abstract class ComponentGE extends Component implements ComponentGEInterface { private static final long serialVersionUID = 1000; protected double gamma = 0; diff --git a/src/main/java/neqsim/thermo/phase/Phase.java b/src/main/java/neqsim/thermo/phase/Phase.java index 9d67c2ace5..fd0d825bb5 100644 --- a/src/main/java/neqsim/thermo/phase/Phase.java +++ b/src/main/java/neqsim/thermo/phase/Phase.java @@ -20,7 +20,7 @@ * * @author Even Solbraa */ -abstract class Phase implements PhaseInterface { +public abstract class Phase implements PhaseInterface { private static final long serialVersionUID = 1000; static Logger logger = LogManager.getLogger(Phase.class); diff --git a/src/main/java/neqsim/thermo/phase/PhaseEos.java b/src/main/java/neqsim/thermo/phase/PhaseEos.java index db48eac349..b78782bd87 100644 --- a/src/main/java/neqsim/thermo/phase/PhaseEos.java +++ b/src/main/java/neqsim/thermo/phase/PhaseEos.java @@ -16,7 +16,7 @@ * * @author Even Solbraa */ -abstract class PhaseEos extends Phase implements PhaseEosInterface { +public abstract class PhaseEos extends Phase implements PhaseEosInterface { private static final long serialVersionUID = 1000; static Logger logger = LogManager.getLogger(PhaseEos.class); diff --git a/src/main/java/neqsim/thermo/system/SystemEos.java b/src/main/java/neqsim/thermo/system/SystemEos.java index a855262ab7..1c2d07eca4 100644 --- a/src/main/java/neqsim/thermo/system/SystemEos.java +++ b/src/main/java/neqsim/thermo/system/SystemEos.java @@ -4,7 +4,7 @@ * * @author Even Solbraa */ -abstract class SystemEos extends neqsim.thermo.system.SystemThermo { +public abstract class SystemEos extends neqsim.thermo.system.SystemThermo { private static final long serialVersionUID = 1000; /** diff --git a/src/main/java/neqsim/thermo/system/SystemThermo.java b/src/main/java/neqsim/thermo/system/SystemThermo.java index a59ab638f2..2970bdbb44 100644 --- a/src/main/java/neqsim/thermo/system/SystemThermo.java +++ b/src/main/java/neqsim/thermo/system/SystemThermo.java @@ -43,7 +43,7 @@ /** * This is the base class of the System classes. */ -abstract class SystemThermo implements SystemInterface { +public abstract class SystemThermo implements SystemInterface { private static final long serialVersionUID = 1000; static Logger logger = LogManager.getLogger(SystemThermo.class); diff --git a/src/main/java/neqsim/thermodynamicOperations/flashOps/Flash.java b/src/main/java/neqsim/thermodynamicOperations/flashOps/Flash.java index 59dc3555e7..f5a20862b5 100644 --- a/src/main/java/neqsim/thermodynamicOperations/flashOps/Flash.java +++ b/src/main/java/neqsim/thermodynamicOperations/flashOps/Flash.java @@ -17,7 +17,7 @@ * * @author Even Solbraa */ -abstract class Flash extends BaseOperation { +public abstract class Flash extends BaseOperation { private static final long serialVersionUID = 1000; static Logger logger = LogManager.getLogger(Flash.class);