Skip to content

Commit 0bf7663

Browse files
committed
Polishing
1 parent 8c9ce41 commit 0bf7663

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/main/java/io/asyncer/r2dbc/mysql/internal/util/FluxEnvelope.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void subscribe(CoreSubscriber<? super ByteBuf> actual) {
5757
if (cumulate) {
5858
this.source.subscribe(new CumulateEnvelopeSubscriber(actual, alloc, size, start));
5959
} else {
60-
this.source.subscribe(new DirectEnvelopeSubscriber(actual, alloc, size, start));
60+
this.source.subscribe(new DirectEnvelopeSubscriber(actual, alloc, start));
6161
}
6262
}
6363
}
@@ -68,19 +68,15 @@ final class DirectEnvelopeSubscriber implements CoreSubscriber<ByteBuf>, Scannab
6868

6969
private final ByteBufAllocator alloc;
7070

71-
private final int size;
72-
7371
private boolean done;
7472

7573
private Subscription s;
7674

7775
private int envelopeId;
7876

79-
DirectEnvelopeSubscriber(CoreSubscriber<? super ByteBuf> actual, ByteBufAllocator alloc, int size,
80-
int start) {
77+
DirectEnvelopeSubscriber(CoreSubscriber<? super ByteBuf> actual, ByteBufAllocator alloc, int start) {
8178
this.actual = actual;
8279
this.alloc = alloc;
83-
this.size = size;
8480
this.envelopeId = start;
8581
}
8682

@@ -155,7 +151,6 @@ public Context currentContext() {
155151
}
156152

157153
@Override
158-
@SuppressWarnings("rawtypes")
159154
public Object scanUnsafe(Attr key) {
160155
if (key == Attr.PARENT) {
161156
return this.s;
@@ -322,7 +317,6 @@ public Context currentContext() {
322317
}
323318

324319
@Override
325-
@SuppressWarnings("rawtypes")
326320
public Object scanUnsafe(Attr key) {
327321
if (key == Attr.PARENT) {
328322
return this.s;

src/main/java/io/asyncer/r2dbc/mysql/message/client/SubsequenceClientMessage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
package io.asyncer.r2dbc.mysql.message.client;
1818

1919
/**
20-
* An abstraction of {@link ClientMessage} considers as a subsequence of a request message.
20+
* An abstraction of {@link ClientMessage} that considers as a subsequence of responses from a request from
21+
* the server.
2122
* <p>
2223
* All encoded buffers will not be cumulated.
2324
*/

0 commit comments

Comments
 (0)