This commit is contained in:
redkale
2024-10-24 09:17:01 +08:00
parent 9c7ece9282
commit 29ea1eb76b
3 changed files with 2 additions and 14 deletions

View File

@@ -393,7 +393,7 @@ public abstract class WebSocketNode implements Service {
}
return future == null ? CompletableFuture.completedFuture(false) : future;
});
return localFuture == null ? remoteFuture : localFuture.thenCombine(remoteFuture, (a, b) -> a | b);
return localFuture == null ? remoteFuture : localFuture.thenCombine(remoteFuture, (a, b) -> a || b);
}
/**

View File

@@ -105,12 +105,6 @@ public final class Flipper extends RowBound {
return this;
}
@Override
@SuppressWarnings("CloneDoesntCallSuperClone")
public Flipper clone() {
return this.copyTo(new Flipper());
}
@Override
public String toString() {
return "{\"limit\":" + this.limit + ",\"offset\":" + this.offset

View File

@@ -19,7 +19,7 @@ import org.redkale.convert.ConvertColumn;
* @author zhangjx
* @since 2.8.0
*/
public class RowBound implements Serializable, Cloneable {
public class RowBound implements Serializable {
private static int DEFAULT_LIMIT = 20;
@@ -81,12 +81,6 @@ public class RowBound implements Serializable, Cloneable {
return this;
}
@Override
@SuppressWarnings("CloneDoesntCallSuperClone")
public RowBound clone() {
return this.copyTo(new RowBound());
}
@Override
public String toString() {
return "{\"limit\":" + this.limit + ",\"offset\":" + this.offset + "}";