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


The following commit(s) were added to refs/heads/master by this push:
     new 7c05b1c4 Fix PMD issue AccessorClassGeneration
7c05b1c4 is described below

commit 7c05b1c4b830e9a8f8069ae73f4dd93707ddef49
Author: Gary Gregory <[email protected]>
AuthorDate: Tue May 21 13:18:20 2024 -0400

    Fix PMD issue AccessorClassGeneration
    
    Avoid instantiation through private constructors from outside of the
    constructors class
    
            <file 
name="C:\Users\ggregory\git\a\commons-jexl\src\main\java\org\apache\commons\jexl3\JexlException.java">
                    <violation beginline="1078"
                               endline="1078"
                               begincolumn="17"
                               endcolumn="26"
                               rule="AccessorClassGeneration"
                               ruleset="Best Practices"
                               package="org.apache.commons.jexl3"
                               class="TryFailed"
                               method="TryFailed"
                               
externalInfoUrl="https://docs.pmd-code.org/pmd-doc-7.1.0/pmd_rules_java_bestpractices.html#accessorclassgeneration";
                               priority="3">
    Avoid instantiation through private constructors from outside of the
    constructors class.
    </violation>
---
 src/main/java/org/apache/commons/jexl3/JexlException.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/jexl3/JexlException.java 
b/src/main/java/org/apache/commons/jexl3/JexlException.java
index 1373f070..50c651b9 100644
--- a/src/main/java/org/apache/commons/jexl3/JexlException.java
+++ b/src/main/java/org/apache/commons/jexl3/JexlException.java
@@ -1075,7 +1075,7 @@ public class JexlException extends RuntimeException {
          * Creates a new instance.
          * @param xany the original invocation target exception
          */
-        private TryFailed(final InvocationTargetException xany) {
+        TryFailed(final InvocationTargetException xany) {
             super((JexlInfo) null, "tryFailed", xany.getCause());
         }
     }

Reply via email to