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-configuration.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f8c8a00 Throwing Exception is an anti-pattern, so be more precise 
since we easily can
6f8c8a00 is described below

commit 6f8c8a004c7a1d2aa18936b56f07bee4aaf0fb5c
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Jun 16 10:50:04 2022 -0400

    Throwing Exception is an anti-pattern, so be more precise since we
    easily can
---
 .../org/apache/commons/configuration2/interpol/ConstantLookup.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/configuration2/interpol/ConstantLookup.java 
b/src/main/java/org/apache/commons/configuration2/interpol/ConstantLookup.java
index 7351d289..89ecbe13 100644
--- 
a/src/main/java/org/apache/commons/configuration2/interpol/ConstantLookup.java
+++ 
b/src/main/java/org/apache/commons/configuration2/interpol/ConstantLookup.java
@@ -92,9 +92,9 @@ public class ConstantLookup implements Lookup {
      * @param className the name of the class
      * @param fieldName the name of the member field of that class to read
      * @return the field's value
-     * @throws Exception if an error occurs
+     * @throws ReflectiveOperationException if an error occurs
      */
-    protected Object resolveField(final String className, final String 
fieldName) throws Exception {
+    protected Object resolveField(final String className, final String 
fieldName) throws ReflectiveOperationException {
         return fetchClass(className).getField(fieldName).get(null);
     }
 

Reply via email to