Skip to content

Commit 464038a

Browse files
Artem LabazinArtem Labazin
authored andcommitted
Fix checkstyle
1 parent 143960a commit 464038a

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/main/java/io/appulse/utils/ReadBytesUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public static int read (@NonNull InputStream inputStream, @NonNull ByteBuffer bu
189189
*
190190
* @param inputStream the input data stream
191191
*
192-
* @param buffer the buffer into which the data is read
192+
* @param bytes the buffer into which the data is read
193193
*
194194
* @param offset the start offset in the <code>buffer</code> at which the data is written
195195
*
@@ -257,7 +257,7 @@ public static int read (ReadableByteChannel channel, byte[] buffer, int length)
257257
*
258258
* @param channel the input data channel
259259
*
260-
* @param buffer the buffer into which the data is read
260+
* @param bytes the buffer into which the data is read
261261
*
262262
* @param offset the start offset in the <code>buffer</code> at which the data is written
263263
*

src/test/java/io/appulse/utils/ReadBytesUtilsTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
package io.appulse.utils;
1818

19-
import static org.assertj.core.api.Assertions.assertThat;
2019
import static java.nio.charset.StandardCharsets.UTF_8;
2120
import static java.nio.file.StandardOpenOption.CREATE;
2221
import static java.nio.file.StandardOpenOption.READ;
2322
import static java.nio.file.StandardOpenOption.WRITE;
2423
import static java.util.Comparator.reverseOrder;
24+
import static org.assertj.core.api.Assertions.assertThat;
2525

2626
import java.io.File;
2727
import java.io.InputStream;
@@ -32,13 +32,12 @@
3232
import java.nio.file.Paths;
3333
import java.util.UUID;
3434

35+
import lombok.SneakyThrows;
36+
import lombok.val;
3537
import org.junit.jupiter.api.AfterEach;
3638
import org.junit.jupiter.api.BeforeEach;
3739
import org.junit.jupiter.api.Test;
3840

39-
import lombok.SneakyThrows;
40-
import lombok.val;
41-
4241
class ReadBytesUtilsTests {
4342

4443
private static final Path FOLDER = Paths.get("./test-folder");
@@ -397,6 +396,7 @@ private void clearFolder () {
397396

398397
interface ConsumerWithThrowable<T> {
399398

399+
@SuppressWarnings("checkstyle:IllegalThrows")
400400
void consume (T value) throws Throwable;
401401
}
402402
}

src/test/java/io/appulse/utils/WriteBytesUtilsTests.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
package io.appulse.utils;
1818

19-
import static org.assertj.core.api.Assertions.assertThat;
2019
import static java.nio.charset.StandardCharsets.UTF_8;
2120
import static java.nio.file.StandardOpenOption.WRITE;
2221
import static java.util.Comparator.reverseOrder;
22+
import static org.assertj.core.api.Assertions.assertThat;
2323

2424
import java.io.File;
2525
import java.io.OutputStream;
@@ -31,13 +31,12 @@
3131
import java.util.Arrays;
3232
import java.util.UUID;
3333

34+
import lombok.SneakyThrows;
35+
import lombok.val;
3436
import org.junit.jupiter.api.AfterEach;
3537
import org.junit.jupiter.api.BeforeEach;
3638
import org.junit.jupiter.api.Test;
3739

38-
import lombok.SneakyThrows;
39-
import lombok.val;
40-
4140
class WriteBytesUtilsTests {
4241

4342
private static final Path FOLDER = Paths.get("./test-folder");
@@ -384,11 +383,13 @@ private void clearFolder () {
384383

385384
interface ConsumerWithThrowable<T> {
386385

386+
@SuppressWarnings("checkstyle:IllegalThrows")
387387
void consume (T value) throws Throwable;
388388
}
389389

390390
interface BiconsumerWithThrowable<A, B> {
391391

392+
@SuppressWarnings("checkstyle:IllegalThrows")
392393
void consume (A a, B b) throws Throwable;
393394
}
394395
}

0 commit comments

Comments
 (0)