This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 47b8fabd064 Fix sonar issue on PostgreSQLCommandExecuteEngineTest
(#37986)
47b8fabd064 is described below
commit 47b8fabd0644f9e0b2db47375c58add66f25cfb3
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Feb 8 23:35:38 2026 +0800
Fix sonar issue on PostgreSQLCommandExecuteEngineTest (#37986)
---
.../frontend/postgresql/command/PostgreSQLCommandExecuteEngineTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/proxy/frontend/dialect/postgresql/src/test/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/PostgreSQLCommandExecuteEngineTest.java
b/proxy/frontend/dialect/postgresql/src/test/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/PostgreSQLCommandExecuteEngineTest.java
index 997317ca525..ca9d093e01e 100644
---
a/proxy/frontend/dialect/postgresql/src/test/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/PostgreSQLCommandExecuteEngineTest.java
+++
b/proxy/frontend/dialect/postgresql/src/test/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/PostgreSQLCommandExecuteEngineTest.java
@@ -254,7 +254,7 @@ class PostgreSQLCommandExecuteEngineTest {
private PostgreSQLCommandCompletePacket captureCommandCompletePacket(final
int expectedWrites) {
ArgumentCaptor<Object> captor = ArgumentCaptor.forClass(Object.class);
verify(channelHandlerContext,
times(expectedWrites)).write(captor.capture());
- return (PostgreSQLCommandCompletePacket)
captor.getAllValues().stream().filter(each -> each instanceof
PostgreSQLCommandCompletePacket).findFirst()
+ return (PostgreSQLCommandCompletePacket)
captor.getAllValues().stream().filter(PostgreSQLCommandCompletePacket.class::isInstance).findFirst()
.orElseThrow(() -> new AssertionError("CommandComplete packet
not written"));
}