mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
22-FixVisibilityIssues
This commit is contained in:
parent
852f69f748
commit
55a31b2892
2 changed files with 4 additions and 0 deletions
|
|
@ -256,12 +256,14 @@ public class Grid {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("ClassEscapesDefinedScope")
|
||||||
public List<Cell> getColumn(final int index) {
|
public List<Cell> getColumn(final int index) {
|
||||||
|
|
||||||
return IntStream.range(0, this.values.size()).filter(n -> n % this.definitions.size() == index).mapToObj(this.values::get)
|
return IntStream.range(0, this.values.size()).filter(n -> n % this.definitions.size() == index).mapToObj(this.values::get)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("ClassEscapesDefinedScope")
|
||||||
public Grid addCell(final Cell cell) {
|
public Grid addCell(final Cell cell) {
|
||||||
this.values.add(cell);
|
this.values.add(cell);
|
||||||
return this;
|
return this;
|
||||||
|
|
|
||||||
|
|
@ -132,6 +132,7 @@ public class StreamHelper {
|
||||||
* @param stream the stream
|
* @param stream the stream
|
||||||
* @return a wrapped stream
|
* @return a wrapped stream
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("ClassEscapesDefinedScope")
|
||||||
public static InputStream wrapCount(final LazyReadInput input, final InputStream stream) throws IOException {
|
public static InputStream wrapCount(final LazyReadInput input, final InputStream stream) throws IOException {
|
||||||
return new CountInputStream(input, stream);
|
return new CountInputStream(input, stream);
|
||||||
}
|
}
|
||||||
|
|
@ -143,6 +144,7 @@ public class StreamHelper {
|
||||||
* @param stream the stream
|
* @param stream the stream
|
||||||
* @return a wrapped stream
|
* @return a wrapped stream
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("ClassEscapesDefinedScope")
|
||||||
public static InputStream wrapDigesting(final LazyReadInput input, final InputStream stream, final String digestAlgorithm) {
|
public static InputStream wrapDigesting(final LazyReadInput input, final InputStream stream, final String digestAlgorithm) {
|
||||||
return new DigestingInputStream(input, stream, createDigest(digestAlgorithm));
|
return new DigestingInputStream(input, stream, createDigest(digestAlgorithm));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue