This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new ff53b3b48c Remove useless code
ff53b3b48c is described below
commit ff53b3b48c39a8703ff01db0451fe8bdc78e19a8
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]