@@ -37,7 +37,8 @@ public static ByteBuf encodeMetadata(
37
37
}
38
38
if (actualASCIILength < 1 || actualASCIILength > 128 ) {
39
39
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" );
41
42
}
42
43
43
44
int capacity = 1 + actualASCIILength ;
@@ -235,8 +236,8 @@ public static ByteBuf readPayload(ByteBuf metadata) {
235
236
}
236
237
237
238
/**
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
240
241
*
241
242
* @param simpleAuthMetadata the given metadata to read username from. Please note, the {@code
242
243
* simpleAuthMetadata#readIndex} should be set to the username length position
@@ -268,8 +269,8 @@ public static ByteBuf readPassword(ByteBuf simpleAuthMetadata) {
268
269
return simpleAuthMetadata .readSlice (simpleAuthMetadata .readableBytes ());
269
270
}
270
271
/**
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
273
274
*
274
275
* @param simpleAuthMetadata the given metadata to read username from. Please note, the {@code
275
276
* simpleAuthMetadata#readIndex} should be set to the username length byte
0 commit comments