Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
B0SKAMP committed Feb 29, 2024
1 parent 76fc7c7 commit 01a7f72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public List<Boolean> readBools() {
}

Check warning on line 125 in api/src/main/java/org/fairdatapipeline/api/Object_component_read.java

View check run for this annotation

Codecov / codecov/patch

api/src/main/java/org/fairdatapipeline/api/Object_component_read.java#L121-L125

Added lines #L121 - L125 were not covered by tests
if (!(data instanceof ImmutableBoolList)) {
throw (new RuntimeException(

Check warning on line 127 in api/src/main/java/org/fairdatapipeline/api/Object_component_read.java

View check run for this annotation

Codecov / codecov/patch

api/src/main/java/org/fairdatapipeline/api/Object_component_read.java#L127

Added line #L127 was not covered by tests
"readBools() -- this objComponent (" + this.component_name + ") is not a BoolList"));
"readBools() -- this objComponent (" + this.component_name + ") is not a BoolList"));
}
return ((ImmutableBoolList) data).getBools();

Check warning on line 130 in api/src/main/java/org/fairdatapipeline/api/Object_component_read.java

View check run for this annotation

Codecov / codecov/patch

api/src/main/java/org/fairdatapipeline/api/Object_component_read.java#L130

Added line #L130 was not covered by tests
}
Expand All @@ -144,12 +144,11 @@ public List<String> readStrings() {
}

Check warning on line 144 in api/src/main/java/org/fairdatapipeline/api/Object_component_read.java

View check run for this annotation

Codecov / codecov/patch

api/src/main/java/org/fairdatapipeline/api/Object_component_read.java#L140-L144

Added lines #L140 - L144 were not covered by tests
if (!(data instanceof ImmutableStringList)) {
throw (new RuntimeException(

Check warning on line 146 in api/src/main/java/org/fairdatapipeline/api/Object_component_read.java

View check run for this annotation

Codecov / codecov/patch

api/src/main/java/org/fairdatapipeline/api/Object_component_read.java#L146

Added line #L146 was not covered by tests
"readStrings() -- this objComponent (" + this.component_name + ") is not a StringList"));
"readStrings() -- this objComponent (" + this.component_name + ") is not a StringList"));
}
return ((ImmutableStringList) data).getStrings();

Check warning on line 149 in api/src/main/java/org/fairdatapipeline/api/Object_component_read.java

View check run for this annotation

Codecov / codecov/patch

api/src/main/java/org/fairdatapipeline/api/Object_component_read.java#L149

Added line #L149 was not covered by tests
}


/**
* read the Samples that were stored as this component in a TOML file.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ public void writeBools(BoolList bools) {
try (CleanableFileChannel fileChannel = this.getFileChannel()) {
this.dp.coderun.parameterDataWriter.write(fileChannel, this.component_name, bools);
} catch (IOException e) {
throw (new RuntimeException(
"writeBools() -- IOException trying to write to file.", e));
throw (new RuntimeException("writeBools() -- IOException trying to write to file.", e));
}
this.been_used = true;
}

Check warning on line 116 in api/src/main/java/org/fairdatapipeline/api/Object_component_write.java

View check run for this annotation

Codecov / codecov/patch

api/src/main/java/org/fairdatapipeline/api/Object_component_write.java#L110-L116

Added lines #L110 - L116 were not covered by tests
Expand All @@ -128,8 +127,7 @@ public void writeStrings(StringList strings) {
try (CleanableFileChannel fileChannel = this.getFileChannel()) {
this.dp.coderun.parameterDataWriter.write(fileChannel, this.component_name, strings);
} catch (IOException e) {
throw (new RuntimeException(
"writeStrings() -- IOException trying to write to file.", e));
throw (new RuntimeException("writeStrings() -- IOException trying to write to file.", e));
}
this.been_used = true;

Check warning on line 132 in api/src/main/java/org/fairdatapipeline/api/Object_component_write.java

View check run for this annotation

Codecov / codecov/patch

api/src/main/java/org/fairdatapipeline/api/Object_component_write.java#L127-L132

Added lines #L127 - L132 were not covered by tests
}
Expand Down

0 comments on commit 01a7f72

Please sign in to comment.