This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 0466920ee0 Remove useless code
0466920ee0 is described below
commit 0466920ee018498545e924ceb7d2d0e101f0a6a0
Author: remm <[email protected]>
AuthorDate: Fri Sep 22 09:08:25 2023 +0200
Remove useless code
Found by coverity.
---
java/org/apache/catalina/ha/session/DeltaRequest.java | 5 -----
1 file changed, 5 deletions(-)
diff --git a/java/org/apache/catalina/ha/session/DeltaRequest.java
b/java/org/apache/catalina/ha/session/DeltaRequest.java
index 7daadae0fe..412d5513a3 100644
--- a/java/org/apache/catalina/ha/session/DeltaRequest.java
+++ b/java/org/apache/catalina/ha/session/DeltaRequest.java
@@ -289,11 +289,6 @@ public class DeltaRequest implements Externalizable {
sessionId = in.readUTF();
recordAllActions = in.readBoolean();
int cnt = in.readInt();
- if (actions == null) {
- actions = new ArrayDeque<>();
- } else {
- actions.clear();
- }
for (int i = 0; i < cnt; i++) {
AttributeInfo info = null;
if (this.actionPool.size() > 0) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]