Skip to content

Commit 8c3e936

Browse files
committed
spotlessApply
1 parent 718ccdc commit 8c3e936

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

api/src/main/java/org/fairdatapipeline/api/Object_component_write.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public CleanableFileChannel writeFileChannel() throws IOException {
6464
* @param estimateNumber the number to write.
6565
*/
6666
public void writeEstimate(Number estimateNumber) {
67-
if(this.been_used) {
68-
throw(new RuntimeException("obj component already written"));
67+
if (this.been_used) {
68+
throw (new RuntimeException("obj component already written"));
6969
}
7070
var estimate =
7171
ImmutableEstimate.builder().internalValue(estimateNumber).rng(this.dp.coderun.rng).build();
@@ -84,8 +84,8 @@ public void writeEstimate(Number estimateNumber) {
8484
* @param distribution the Distribution to write
8585
*/
8686
public void writeDistribution(Distribution distribution) {
87-
if(this.been_used) {
88-
throw(new RuntimeException("obj component already written"));
87+
if (this.been_used) {
88+
throw (new RuntimeException("obj component already written"));
8989
}
9090
try (CleanableFileChannel fileChannel = this.getFileChannel()) {
9191
this.dp.coderun.parameterDataWriter.write(fileChannel, this.component_name, distribution);
@@ -102,8 +102,8 @@ public void writeDistribution(Distribution distribution) {
102102
* @param samples a Samples object containing the samples
103103
*/
104104
public void writeSamples(Samples samples) {
105-
if(this.been_used) {
106-
throw(new RuntimeException("obj component already written"));
105+
if (this.been_used) {
106+
throw (new RuntimeException("obj component already written"));
107107
}
108108
try (CleanableFileChannel fileChannel = this.getFileChannel()) {
109109
this.dp.coderun.parameterDataWriter.write(fileChannel, this.component_name, samples);

api/src/test/java/org/fairdatapipeline/api/CoderunIntegrationTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import static org.assertj.core.api.Assertions.assertThat;
44
import static org.junit.jupiter.api.Assertions.*;
55
import static org.junit.jupiter.api.Assertions.assertThrows;
6-
76
import static org.mockito.Mockito.mock;
87
import static org.mockito.Mockito.when;
98

@@ -337,6 +336,7 @@ void testWriteEstimateFail() {
337336
assertThrows(RuntimeException.class, () -> oc.writeEstimate(estimate));
338337
}
339338
}
339+
340340
@Test
341341
@Order(1)
342342
void testWriteEstimate() {
@@ -405,6 +405,7 @@ void testWriteCategoricalDistributionFail() {
405405
assertThrows(RuntimeException.class, () -> oc.writeDistribution(distribution));
406406
}
407407
}
408+
408409
@Test
409410
@Order(5)
410411
void testWriteCategoricalDistribution() {

0 commit comments

Comments
 (0)