You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/11/01 11:17:28 UTC

(commons-jexl) branch master updated (52475740 -> 3e8bf7b2)

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

ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git


    from 52475740 Javadoc
     new 064d4299 Javadoc
     new 3e8bf7b2 Clarify descriptions

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/changes/changes.xml                             | 15 +++++++--------
 .../internal/introspection/AbstractExecutor.java    | 21 ++++++++++++++++++++-
 2 files changed, 27 insertions(+), 9 deletions(-)


(commons-jexl) 02/02: Clarify descriptions

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 3e8bf7b293dc9877de00df1e0d58a0a2ad488fe9
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 1 07:06:03 2025 -0400

    Clarify descriptions
---
 src/changes/changes.xml | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index d820cb96..82ec89f8 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -31,10 +31,10 @@
                  description="This is a feature and maintenance release. Java 8 or later is required.">
             <!-- FIX -->
             <action dev="henrib" type="fix" issue="JEXL-447" due-to="William Price">
-                Regression in script-defined functions
+                Regression in script-defined functions.
             </action>
             <action dev="William Price" type="fix" issue="JEXL-446" due-to="William Price">
-                ClassTool module inspection is too strict
+                ClassTool module inspection is too strict.
             </action>
             <action dev="henrib" type="fix" issue="JEXL-442" due-to="Xu Pengcheng">
                 Local variables are not resolved in interpolation string expression.
@@ -43,21 +43,20 @@
                 Tokenization error if "\n" in template expression.
             </action>
             <action dev="henrib" type="fix" issue="JEXL-439" due-to="Xu Pengcheng">
-                When using reference capture, incorrect scoping when local variable redefines a captured symbol
+                When using reference capture, incorrect scoping when local variable redefines a captured symbol.
             </action>
             <action dev="henrib" type="fix" issue="JEXL-437" due-to="William Price">
-                Semicolons not actually optional between function calls on separate lines
+                Semicolons not actually optional between function calls on separate lines.
             </action>
             <action type="fix" dev="ggregory" due-to="Gary Gregory">
-                oac....AbstractExecutor.initMarker(Class, String, Class...) throws IllegalArgumentException instead of Error.
+                org.apache.commons.jexl3.internal.introspection.AbstractExecutor.initMarker(Class, String, Class...) throws IllegalArgumentException instead of Exception.
             </action>
             <action type="fix" dev="ggregory" due-to="Gary Gregory">
-                Reuse BigInteger constants instead of creating new
-                instances in org.apache.commons.jexl3.JexlArithmetic.toBigInteger(Object).
+                Reuse BigInteger constants instead of creating new instances in JexlArithmetic.toBigInteger(Object).
             </action>
             <!-- ADD -->
             <action dev="henrib" type="add" issue="JEXL-440">
-                Switch statement &amp; expressions
+                Switch statement &amp; expressions.
             </action>
           <!-- UPDATE -->
           <action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump org.apache.commons:commons-parent from 81 to 91 #344, #368, #372.</action>


(commons-jexl) 01/02: Javadoc

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 064d4299a4a1b87aedb37ba37a831cd7b8889bba
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 1 07:05:54 2025 -0400

    Javadoc
---
 .../internal/introspection/AbstractExecutor.java    | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/jexl3/internal/introspection/AbstractExecutor.java b/src/main/java/org/apache/commons/jexl3/internal/introspection/AbstractExecutor.java
index 96a7a6e6..2abc0111 100644
--- a/src/main/java/org/apache/commons/jexl3/internal/introspection/AbstractExecutor.java
+++ b/src/main/java/org/apache/commons/jexl3/internal/introspection/AbstractExecutor.java
@@ -29,12 +29,15 @@ import org.apache.commons.jexl3.introspection.JexlPropertySet;
  * @since 1.0
  */
 abstract class AbstractExecutor {
+
     /**
      * Abstract class that is used to execute an arbitrary 'get' method.
      */
     public abstract static class Get extends AbstractExecutor implements JexlPropertyGet {
+
         /**
          * Default and sole constructor.
+         *
          * @param theClass the class this executor applies to
          * @param theMethod the method held by this executor
          */
@@ -47,11 +50,13 @@ abstract class AbstractExecutor {
      * Abstract class that is used to execute an arbitrary method.
      */
     public abstract static class Method extends AbstractExecutor implements JexlMethod {
+
         /** The method key discovered from the arguments. */
         protected final MethodKey key;
 
         /**
          * Creates a new instance.
+         *
          * @param c the class this executor applies to
          * @param m the method
          * @param k the MethodKey
@@ -76,8 +81,10 @@ abstract class AbstractExecutor {
      * Abstract class that is used to execute an arbitrary 'set' method.
      */
     public abstract static class Set extends AbstractExecutor implements JexlPropertySet {
+
         /**
          * Default and sole constructor.
+         *
          * @param theClass the class this executor applies to
          * @param theMethod the method held by this executor
          */
@@ -91,6 +98,7 @@ abstract class AbstractExecutor {
 
     /**
      * Coerce an Object which must be a number to an Integer.
+     *
      * @param arg the Object to coerce
      * @return an Integer if it can be converted, null otherwise
      */
@@ -100,6 +108,7 @@ abstract class AbstractExecutor {
 
     /**
      * Coerce an Object to a String.
+     *
      * @param arg the Object to coerce
      * @return a String if it can be converted, null otherwise
      */
@@ -109,6 +118,7 @@ abstract class AbstractExecutor {
 
     /**
      * Gets the class of an object or Object if null.
+     *
      * @param instance the instance
      * @return the class
      */
@@ -117,6 +127,7 @@ abstract class AbstractExecutor {
     }
     /**
      * A helper to initialize the marker methods (array.get, list.get, etc...).
+     *
      * @param clazz the class to introspect
      * @param name the name of the method
      * @param parms the parameters
@@ -132,6 +143,7 @@ abstract class AbstractExecutor {
 
     /**
      * Creates an arguments array.
+     *
      * @param args the list of arguments
      * @return the arguments array
      */
@@ -147,6 +159,7 @@ abstract class AbstractExecutor {
 
     /**
      * Default and sole constructor.
+     *
      * @param theClass the class this executor applies to
      * @param theMethod the method held by this executor
      */
@@ -156,7 +169,8 @@ abstract class AbstractExecutor {
     }
 
     /**
-     *  Indicates whether some other executor is equivalent to this one.
+     * Indicates whether some other executor is equivalent to this one.
+     *
      * @param arg the other executor to check
      * @return true if both executors are equivalent, false otherwise
      */
@@ -190,6 +204,7 @@ abstract class AbstractExecutor {
 
     /**
      * Gets the method to be executed or used as a marker.
+     *
      * @return Method The method used by execute in derived classes.
      */
     public final java.lang.reflect.Method getMethod() {
@@ -198,6 +213,7 @@ abstract class AbstractExecutor {
 
     /**
      * Gets the method name used.
+     *
      * @return method name
      */
     public final String getMethodName() {
@@ -206,6 +222,7 @@ abstract class AbstractExecutor {
 
     /**
      * Gets the object class targeted by this executor.
+     *
      * @return the target object class
      */
     public final Class<?> getTargetClass() {
@@ -214,6 +231,7 @@ abstract class AbstractExecutor {
 
     /**
      * Gets the property targeted by this executor.
+     *
      * @return the target property
      */
     public Object getTargetProperty() {
@@ -247,6 +265,7 @@ abstract class AbstractExecutor {
 
     /**
      * Checks whether a tryExecute failed or not.
+     *
      * @param exec the value returned by tryExecute
      * @return true if tryExecute failed, false otherwise
      */