Skip to content

Commit c74a432

Browse files
committed
sonar nits
1 parent 754f21a commit c74a432

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/folio/dew/repository/AbstractFilesStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public abstract class AbstractFilesStorage implements FolioS3Client {
3232

3333
private final MinioClientProperties properties;
3434

35-
public AbstractFilesStorage(MinioClientProperties properties) {
35+
protected AbstractFilesStorage(MinioClientProperties properties) {
3636
this.client = S3ClientFactory.getS3Client(properties.toS3ClientProperties());
3737
this.properties = properties;
3838

src/test/java/org/folio/dew/repository/LocalFilesStorageTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ void testWriteReadPatchDelete(int size) throws IOException {
130130
void testNonExistingFileOperations() {
131131
assertThrows(IOException.class, () -> localFilesStorage.readAllLines(NON_EXISTING_PATH));
132132
assertThrows(S3ClientException.class, () -> {
133-
try(var is = localFilesStorage.read(NON_EXISTING_PATH)){
134-
log.info("InputStream setup");
133+
try (var is = localFilesStorage.read(NON_EXISTING_PATH)) {
134+
// should fail
135135
}
136136
});
137137

0 commit comments

Comments
 (0)