Skip to content

Commit a75fa3e

Browse files
committed
Fixed codacy issue regarding field order
1 parent fb15e9f commit a75fa3e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/java/org/cryptomator/cryptofs/ChunkData.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
import java.nio.ByteBuffer;
44

55
class ChunkData {
6-
7-
public static ChunkData writtenChunkData(ByteBuffer bytes) {
8-
return new ChunkData(bytes, true);
9-
}
10-
11-
public static ChunkData readChunkData(ByteBuffer bytes) {
12-
return new ChunkData(bytes, false);
13-
}
146

157
private final ByteBuffer bytes;
168
private final boolean written;
@@ -19,6 +11,14 @@ private ChunkData(ByteBuffer bytes, boolean written) {
1911
this.bytes = bytes;
2012
this.written = written;
2113
}
14+
15+
public static ChunkData writtenChunkData(ByteBuffer bytes) {
16+
return new ChunkData(bytes, true);
17+
}
18+
19+
public static ChunkData readChunkData(ByteBuffer bytes) {
20+
return new ChunkData(bytes, false);
21+
}
2222

2323
public ByteBuffer bytes() {
2424
return bytes;

0 commit comments

Comments
 (0)