Skip to content

Commit 5b10578

Browse files
committed
elf4j version bump
1 parent c20af10 commit 5b10578

File tree

5 files changed

+28
-20
lines changed

5 files changed

+28
-20
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<modelVersion>4.0.0</modelVersion>
2929
<groupId>io.github.q3769</groupId>
3030
<artifactId>chunk4j</artifactId>
31-
<version>20230309.0.3</version>
31+
<version>20230309.0.4</version>
3232
<packaging>jar</packaging>
3333
<name>chunk4j</name>
3434
<description>A Java API to chop up larger data blobs into smaller "chunks" of a pre-defined size, and stitch the
@@ -134,12 +134,12 @@
134134
<dependency>
135135
<groupId>io.github.elf4j</groupId>
136136
<artifactId>elf4j</artifactId>
137-
<version>2.1.1</version>
137+
<version>2.2.1</version>
138138
</dependency>
139139
<dependency>
140140
<groupId>io.github.elf4j</groupId>
141141
<artifactId>elf4j-provider</artifactId>
142-
<version>2.0.0</version>
142+
<version>3.0.2</version>
143143
<scope>test</scope>
144144
</dependency>
145145
<dependency>
@@ -203,7 +203,7 @@
203203
<plugin>
204204
<groupId>io.github.q3769</groupId>
205205
<artifactId>semver-maven-plugin</artifactId>
206-
<version>20221011.0.8</version>
206+
<version>20221011.0.9</version>
207207
</plugin>
208208
</plugins>
209209
</build>

src/main/java/chunk4j/Chopper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
public interface Chopper {
3333

3434
/**
35-
* @param bytes the original data blob to be chopped into chunks
35+
* @param bytes
36+
* the original data blob to be chopped into chunks
3637
* @return the group of chunks which the original data blob is chopped into. Each chunk carries a portion of the
3738
* original bytes; and the size of that portion has a pre-configured maximum (a.k.a. the {@code Chunk}'s
3839
* capacity). Thus, if the size of the original bytes is smaller or equal to the chunk's capacity, then the

src/main/java/chunk4j/ChunkChopper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ private ChunkChopper(int chunkByteCapacity) {
4747
}
4848

4949
/**
50-
* @param maxChunkByteSize how big you want the chunks of your data chopped up to be
50+
* @param maxChunkByteSize
51+
* how big you want the chunks of your data chopped up to be
5152
* @return new Chopper instance
5253
*/
5354
public static ChunkChopper ofByteSize(int maxChunkByteSize) {

src/main/java/chunk4j/ChunkStitcher.java

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ private static Optional<byte[]> optionalOf(@Nullable byte[] bytes) {
6969
}
7070

7171
/**
72-
* @param chunk to be added to its corresponding chunk group, possibly stitched to restore the original data bytes
73-
* if this is the last chunk the group is expecting.
72+
* @param chunk
73+
* to be added to its corresponding chunk group, possibly stitched to restore the original data bytes if
74+
* this is the last chunk the group is expecting.
7475
* @return non-empty <code>Optional</code> containing the original data bytes restored by the stitcher if the input
7576
* chunk is the last missing piece of the entire chunk group representing the original data; otherwise, if
7677
* the input chunk is not the last one expected, empty <code>Optional</code>.
@@ -121,8 +122,9 @@ public ChunkStitcher build() {
121122
}
122123

123124
/**
124-
* @param maxStitchTime max duration from the very first chunk received by the stitcher to the original data is
125-
* restored completely
125+
* @param maxStitchTime
126+
* max duration from the very first chunk received by the stitcher to the original data is restored
127+
* completely
126128
* @return the fluent builder
127129
*/
128130
public Builder maxStitchTime(Duration maxStitchTime) {
@@ -131,8 +133,9 @@ public Builder maxStitchTime(Duration maxStitchTime) {
131133
}
132134

133135
/**
134-
* @param v Optional safeguard against excessive large size of target restore data - either by mistake or
135-
* malicious attack. Default to no size limit.
136+
* @param v
137+
* Optional safeguard against excessive large size of target restore data - either by mistake or
138+
* malicious attack. Default to no size limit.
136139
* @return same builder instance
137140
*/
138141
public Builder maxStitchedByteSize(int v) {
@@ -141,7 +144,8 @@ public Builder maxStitchedByteSize(int v) {
141144
}
142145

143146
/**
144-
* @param maxGroups max number of pending stitch groups. These groups will take up memory at runtime.
147+
* @param maxGroups
148+
* max number of pending stitch groups. These groups will take up memory at runtime.
145149
* @return the fluent builder
146150
*/
147151
public Builder maxStitchingGroups(long maxGroups) {
@@ -181,8 +185,9 @@ private static int totalByteSizeOf(@NonNull Collection<Chunk> chunks) {
181185
}
182186

183187
/**
184-
* @param chunk to be added in the stitching group, possibly stitched if this is the last chunk the group is
185-
* expecting.
188+
* @param chunk
189+
* to be added in the stitching group, possibly stitched if this is the last chunk the group is
190+
* expecting.
186191
* @return the bytes by stitching together all the chunks in the group if the passed-in chunk is the last one
187192
* the group is expecting; otherwise, <code>null</code>.
188193
*/

src/main/java/chunk4j/Stitcher.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@
3232
public interface Stitcher {
3333

3434
/**
35-
* @param chunk to be added to its corresponding chunk group. If this chunk renders its group "complete", i.e. all
36-
* the chunks of the original data blob are gathered, then the original data blob will be stitched
37-
* together and returned. Otherwise, if the chunk group still hasn't gathered all the chunks needed,
38-
* even with the addition of this chunk, then the whole group will be kept around, waiting for the
39-
* missing chunk(s) to arrive.
35+
* @param chunk
36+
* to be added to its corresponding chunk group. If this chunk renders its group "complete", i.e. all the
37+
* chunks of the original data blob are gathered, then the original data blob will be stitched together and
38+
* returned. Otherwise, if the chunk group still hasn't gathered all the chunks needed, even with the
39+
* addition of this chunk, then the whole group will be kept around, waiting for the missing chunk(s) to
40+
* arrive.
4041
* @return non-empty <code>Optional</code> containing the original data blob restored by the stitcher if the input
4142
* chunk is the last missing piece of the entire chunk group representing the original data; otherwise, if
4243
* the input chunk is not the last one expected, empty <code>Optional</code>.

0 commit comments

Comments
 (0)