Skip to content

Commit 1a1e41e

Browse files
Jascha RiedelJascha Riedel
authored andcommitted
Formatted with google-java-format-1.9
1 parent 1ec0bd9 commit 1a1e41e

File tree

2 files changed

+471
-469
lines changed

2 files changed

+471
-469
lines changed

rsocket-core/src/main/java/io/rsocket/metadata/AuthMetadataCodec.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public static ByteBuf encodeMetadata(
3737
}
3838
if (actualASCIILength < 1 || actualASCIILength > 128) {
3939
throw new IllegalArgumentException(
40-
"custom auth type must have a strictly positive length that fits on 7 unsigned bits, ie 1-128");
40+
"custom auth type must have a strictly positive length that fits on 7 unsigned bits, ie"
41+
+ " 1-128");
4142
}
4243

4344
int capacity = 1 + actualASCIILength;
@@ -235,8 +236,8 @@ public static ByteBuf readPayload(ByteBuf metadata) {
235236
}
236237

237238
/**
238-
* Read up to 65537 {@code bytes} from the given {@link ByteBuf} where the first two bytes represent username
239-
* length and the subsequent number of bytes equal to read length
239+
* Read up to 65537 {@code bytes} from the given {@link ByteBuf} where the first two bytes
240+
* represent username length and the subsequent number of bytes equal to read length
240241
*
241242
* @param simpleAuthMetadata the given metadata to read username from. Please note, the {@code
242243
* simpleAuthMetadata#readIndex} should be set to the username length position
@@ -268,8 +269,8 @@ public static ByteBuf readPassword(ByteBuf simpleAuthMetadata) {
268269
return simpleAuthMetadata.readSlice(simpleAuthMetadata.readableBytes());
269270
}
270271
/**
271-
* Read up to 65537 {@code bytes} from the given {@link ByteBuf} where the first two bytes represent username
272-
* length and the subsequent number of bytes equal to read length
272+
* Read up to 65537 {@code bytes} from the given {@link ByteBuf} where the first two bytes
273+
* represent username length and the subsequent number of bytes equal to read length
273274
*
274275
* @param simpleAuthMetadata the given metadata to read username from. Please note, the {@code
275276
* simpleAuthMetadata#readIndex} should be set to the username length byte

0 commit comments

Comments
 (0)