Skip to content

Commit 34e674f

Browse files
committed
Merge tag '0.12.1-RC4' into develop
0.12.1-RC4
2 parents 0aef01a + 9a831f1 commit 34e674f

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

gradle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313
#
14-
15-
version=0.12.1-RC4-SNAPSHOT
14+
version=0.12.1-RC4

rsocket-core/src/main/java/io/rsocket/buffer/TupleByteBuffs.java renamed to rsocket-core/src/main/java/io/rsocket/buffer/TupleByteBuf.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import io.netty.buffer.ByteBufAllocator;
55
import java.util.Objects;
66

7-
public abstract class TupleByteBuffs {
7+
public abstract class TupleByteBuf {
88

9-
private TupleByteBuffs() {}
9+
private TupleByteBuf() {}
1010

1111
public static ByteBuf of(ByteBuf one, ByteBuf two) {
1212
return of(ByteBufAllocator.DEFAULT, one, two);

rsocket-core/src/main/java/io/rsocket/frame/DataAndMetadataFlyweight.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import io.netty.buffer.ByteBuf;
44
import io.netty.buffer.ByteBufAllocator;
55
import io.netty.buffer.Unpooled;
6-
import io.rsocket.buffer.TupleByteBuffs;
6+
import io.rsocket.buffer.TupleByteBuf;
77

88
class DataAndMetadataFlyweight {
99
public static final int FRAME_LENGTH_MASK = 0xFFFFFF;
@@ -33,11 +33,11 @@ private static int decodeLength(final ByteBuf byteBuf) {
3333

3434
static ByteBuf encodeOnlyMetadata(
3535
ByteBufAllocator allocator, final ByteBuf header, ByteBuf metadata) {
36-
return TupleByteBuffs.of(allocator, header, metadata);
36+
return TupleByteBuf.of(allocator, header, metadata);
3737
}
3838

3939
static ByteBuf encodeOnlyData(ByteBufAllocator allocator, final ByteBuf header, ByteBuf data) {
40-
return TupleByteBuffs.of(allocator, header, data);
40+
return TupleByteBuf.of(allocator, header, data);
4141
}
4242

4343
static ByteBuf encode(
@@ -46,7 +46,7 @@ static ByteBuf encode(
4646
int length = metadata.readableBytes();
4747
encodeLength(header, length);
4848

49-
return TupleByteBuffs.of(allocator, header, metadata, data);
49+
return TupleByteBuf.of(allocator, header, metadata, data);
5050
}
5151

5252
static ByteBuf metadataWithoutMarking(ByteBuf byteBuf, boolean hasMetadata) {

rsocket-core/src/main/java/io/rsocket/frame/FrameLengthFlyweight.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import io.netty.buffer.ByteBuf;
44
import io.netty.buffer.ByteBufAllocator;
5-
import io.rsocket.buffer.TupleByteBuffs;
5+
import io.rsocket.buffer.TupleByteBuf;
66

77
/**
88
* Some transports like TCP aren't framed, and require a length. This is used by DuplexConnections
@@ -35,7 +35,7 @@ private static int decodeLength(final ByteBuf byteBuf) {
3535
public static ByteBuf encode(ByteBufAllocator allocator, int length, ByteBuf frame) {
3636
ByteBuf buffer = allocator.buffer();
3737
encodeLength(buffer, length);
38-
return TupleByteBuffs.of(allocator, buffer, frame);
38+
return TupleByteBuf.of(allocator, buffer, frame);
3939
}
4040

4141
public static int length(ByteBuf byteBuf) {

0 commit comments

Comments
 (0)