This is an automated email from the ASF dual-hosted git repository.

henrib pushed a commit to branch JEXL-440
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git


The following commit(s) were added to refs/heads/JEXL-440 by this push:
     new 24aec35a JEXL-440 : pesky spotbugs deserialization check (take 3);
24aec35a is described below

commit 24aec35aae6d49c74fb340697b4b065ae28cf7d1
Author: Henrib <hbies...@gmail.com>
AuthorDate: Sun Jun 8 16:05:32 2025 +0200

    JEXL-440 : pesky spotbugs deserialization check (take 3);
---
 src/main/config/findbugs-exclude-filter.xml                         | 6 ++++++
 src/main/java/org/apache/commons/jexl3/parser/ASTCaseStatement.java | 2 +-
 .../java/org/apache/commons/jexl3/parser/ASTSwitchStatement.java    | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/main/config/findbugs-exclude-filter.xml 
b/src/main/config/findbugs-exclude-filter.xml
index 036d40af..d781bd17 100644
--- a/src/main/config/findbugs-exclude-filter.xml
+++ b/src/main/config/findbugs-exclude-filter.xml
@@ -71,4 +71,10 @@
         <Package name="org.apache.commons.jexl3.parser"/>
         <Bug code="EI2,EI"></Bug>
     </Match>
+    <Match>
+        <Class name="org.apache.commons.jexl3.parser.ASTCaseStatement"/>
+    </Match>
+    <Match>
+        <Class name="org.apache.commons.jexl3.parser.ASTSwitchStatement"/>
+    </Match>
 </FindBugsFilter>
diff --git 
a/src/main/java/org/apache/commons/jexl3/parser/ASTCaseStatement.java 
b/src/main/java/org/apache/commons/jexl3/parser/ASTCaseStatement.java
index ed4347b4..6a0d9633 100644
--- a/src/main/java/org/apache/commons/jexl3/parser/ASTCaseStatement.java
+++ b/src/main/java/org/apache/commons/jexl3/parser/ASTCaseStatement.java
@@ -26,7 +26,7 @@ public class ASTCaseStatement extends JexlNode {
   private static final long serialVersionUID = 1L;
 
   /** The values of the case statement. */
-  protected transient List<Object> values = Collections.emptyList();
+  protected List<Object> values = Collections.emptyList();
 
   public ASTCaseStatement(int id) {
     super(id);
diff --git 
a/src/main/java/org/apache/commons/jexl3/parser/ASTSwitchStatement.java 
b/src/main/java/org/apache/commons/jexl3/parser/ASTSwitchStatement.java
index e7dbbaf5..40f966be 100644
--- a/src/main/java/org/apache/commons/jexl3/parser/ASTSwitchStatement.java
+++ b/src/main/java/org/apache/commons/jexl3/parser/ASTSwitchStatement.java
@@ -29,7 +29,7 @@ public class ASTSwitchStatement extends JexlNode {
   /**
    * The map of cases, where the key is the case value and the value is the 
switch index.
    */
-  protected transient Map<Object, Integer> cases = Collections.emptyMap();
+  protected Map<Object, Integer> cases = Collections.emptyMap();
 
   public ASTSwitchStatement(int id) {
     super(id);

Reply via email to