Skip to content

Commit

Permalink
Fixing spotbugswarnings - (Task #1184)
Browse files Browse the repository at this point in the history
- Fixing Thermal Concept

---
Task #1184: Updating to Eclipse 2024/03 and all dependencies
  • Loading branch information
PhilMFischer committed Jul 10, 2024
1 parent bd6a1ec commit e7d51c3
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import de.dlr.sc.virsat.model.extension.thermal.model.ThermalData;
import de.dlr.sc.virsat.model.extension.thermal.test.TestActivator;
import de.dlr.sc.virsat.model.extension.visualisation.model.Visualisation;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

public class CadImporterThermalTest extends AConceptProjectTestCase {

Expand Down Expand Up @@ -85,6 +86,10 @@ public void setupTmpFolder() throws IOException {
}

@Test
@SuppressFBWarnings(
justification = "final variable is not dead since it is used in assert. Maybe a problem to final, but would otheerwise collide with codnign conventions",
value = "DLS_DEAD_LOCAL_STORE"
)
public void importCadSimulationOutputStatic() throws IOException {
thermalAnalysis.getAnalysisType().setAnalysisType(AnalysisType.ANALYSISTYPE_Static_NAME);

Expand Down Expand Up @@ -121,6 +126,10 @@ public void importCadSimulationOutputStatic() throws IOException {
}

@Test
@SuppressFBWarnings(
justification = "final variable is not dead since it is used in assert. Maybe a problem to final, but would otheerwise collide with codnign conventions",
value = "DLS_DEAD_LOCAL_STORE"
)
public void importCadSimulationOutputTransient() throws IOException {
thermalAnalysis.getAnalysisType().setAnalysisType(AnalysisType.ANALYSISTYPE_Transient_NAME);
thermalAnalysis.getAnalysisType().setTotalTime(2);
Expand Down

0 comments on commit e7d51c3

Please sign in to comment.